Type 2 diabetes is caused by an inactive lifestyle, a diet high in calories, and being overweight also contributes to the chances of getting it. (Type 1 is caused by genetics). This does not mean you can eat as much sugar as you like, because sugar is high in calories, but this is the only link between diabetes and sugar intake. So, in short, yes, excessive sugar intake can contribute to the chances of getting type 2 diabetes, but sugar itself is not the problem.
Myth: Eating too much sugar causes diabetes.
Fact: No, it does not. Type 1 diabetes is caused by genetics and unknown factors that trigger the onset of the disease; type 2 diabetes is caused by genetics and lifestyle factors. Being overweight does increase your risk for developing type 2 diabetes, and a diet high in calories, whether from sugar or from fat, can contribute to weight gain. If you have a history of diabetes in your family, eating a healthy meal plan and regular exercise are recommended to manage your weight.
Source: American Diabetes Association.