Yes, but homo sapiens did not evolve in an environment with mass availability of processed foods. To a certain degree, we evolved to be opportunistic eaters. Agriculture, chemistry and other technology have changed the environment so rapidly that evolution cannot possibly keep up.
I used to believe the idea of eat less/exercise more but that's only part of the picture. Counting calories to lose weight is a fool's errand. Exceed your energy needs by 100 calories a day and you pack on 10 pounds a year.
I now believe the key is to eat less crap (especially simple carbs) and more natural foods so that your body more naturally regulates appetite.
One thing's for certain. The whole "eat more carbs and less fats" message was total BS. Whether it was spread through ignorance or malice, I'm not sure, but I suspect the latter.