Read Our Article on Environmental Factors and Weight Loss
The simple and short answer for this is “probably, but not sure”. Body weight is the product of genetic effects (DNA), epigenetic effects (heritable traits that do not involve changes in DNA), and the environment.
The majority of the obese population who are intending to lose weight will agree to this. One may lose a few pounds by diet modification, exercise, or adding some healthy life style changes, but over a period of time they regain their lost weight or sometimes even more. It does not mean that they did not follow healthy rules, it just means their body found a way to slow their metabolism (save energy). This is the inbuilt mechanism in human beings developed over generations to adapt the body for periods of starvation.