steroid shots while preggo

Do all steroid shots help the baby's lungs? I got a steroid shot for my sinus infection last week. Didn't know If all steroid shots help with the baby's lung development. I'm 32 weeks