Can I get diabetes for the first time while pregnant?

Yes. Gestational diabetes is a common condition affecting about 5% of pregnant women. Patients are screened for this between 24-28 weeks by taking a glucose tolerance test. You drink a 50 g glucose drink followed by a blood test one hour later.
Diabetes. If you have family history of diabetes, you may get gestational diabetes, but not always.