Nope, people will eat what their bodies are designed to seek out.
That is sweet, fat and salt. The building blocks of health.
These are things that are scarce in nature and so our programing is to seek out those flavors, associate them with "good" and eat as much of them as we can get our hands on.
Problem is that to get the sweet you used to have to hunt for weeks to find a honey tree and then fight with the bees to get some. To get the salt walk to the ocean and find a place where sea water evaporated. To get the fat chase down and kill a lot of animals or climb a lot of trees for nuts.
Now days you just walk to the refrigerator.
These things are not bad for you. They are needful. But since nature is no longer limiting you then you need to limit yourself. Since nature can no longer threaten you with, "Move or Die!" you need to decide yourself to get up and move.
“These things are not bad for you.”
Yes, they are, out of moderation, as you point out.