Absolutely, but you have to manage your weight within that.
Some people truly have a medical reason for weight gain.
If you have to take medication, or if you have a biological disorder that causes you to do that, the best you can do is manage it. Learn to be at peace with it. But losing weight is hard work, every minute of every day. Everyone has different challenges, different resources and different gifts. Consequently, people must develop different strategies to accommodate their schedules.