Yes, a lack of sleep increases your risk of type 2 diabetes according to healthline.com. It is also harder to lose and/or maintain weight when you aren't sleeping enough.
Being overweight affects your energy which affects your productivity. Not to mention what the effects of having diabetes would be. Get your Zzzz's!