In a large study, unvaccinated people had an 8.76x higher risk of developing type 2 diabetes in the 4 weeks after COVID vs. before infection. Vaccinated individuals had only a 1.66x increase.
Vaccination significantly reduced (but didn't eliminate) the risk of T2D after COVID.