In the next 2 years? Yes for the CPU, and most likely for the ram. The 4g limit won't change any time soon, but I'm sure you'll see faster CPUs before next Christmas.
if your going to need specs like that in a few years then you might want a mac pro. the max specs right now for the imac i think are going to be quite suffiecient for a long time