Sugar consumption doesn't directly cause diabetes.
Being overweight is one of several primary causes, and yes consuming too many calories will make you overweight.
Once you have diabetes consuming sugar / carbohydrates contributes to a whole host of issues.