lung steroid injections

I'm not at risk for preterm labor but was an <a href="">ivf</a> patient no one has mentioned the steroid shots but I was told at 6 weeks pregnant that I could get them at 24 weeks just in case and that if anything would save the baby's life if born early any one have experience with this or do them just in case?