Gestational diabetes in the first trimester

Can gestational diabetes and hypothyroidism cause birth defects ?