Steroid shots for baby's lungs?

I had two of them and wondering if they make a big difference if baby is born early?