Yes, that’s how you should live if you want to be healthy. If the place where you live doesn’t allow that, then you’re sacrificing your health to live there.
That’s your choice at the end of the day, but don’t make excuses for why you choose to eat garbage all day.