No, it doesn’t. If your pancreas is working, there is absolutely no problem (diabetes wise) with eating as much sugar as you wish. Eating sugar cannot ‘overload’ your pancreas. However, being overweight makes you more likely to have diabetes. It doesn’t cause diabetes.