There is a genetic component to diabetes. If you have a family history of diabetes, you may be at a higher risk, especially for Type 2 diabetes.