This is definitely a major contributing factor, but there are other variables too, such as lifestyle, abundance of food, psychological issue, infirmity, metabolic disorders, genetics etc.
Eating what you want when you want is very sustainable. Having to say no to food will always be more...