Gestational diabetes 30/31weeks

If I were to deliver early since I have gestational diabetes would my baby survive ? I’ve heard that if I was to need a steroid shot for my baby that it wouldn’t reach her because of my bad placenta help me I am worried I just found out I have gestational diabetes now I’m just unfortunately worried 😢😭😳