Studies have been shown that genetics do play a role. Genetics do not make you overweight, but they can give you a higher chance to be overweight.
For example, perhaps your family is much more sugar sensitive than others. Chances are, you will also be more sensitive to sugar.
It just means you have to be extra vigilant in regards to your weight.