Yes, well possibly
The genetics of diabetes
is thought to not be an all or none genetics, but heavily influenced by environmental factors.
Type 1 diabetes is thought to have very little genetic predisposition. Type 2 diabetes is more common when parents or siblings had or have developed diabetes. However, it is heavily influenced by weight, lifestyle factors, dietary factors, etc.