Steroid for lungs

Has anybody had the steroid shot to help develop babies lungs?? My doctor just made me get the shot, after I said I didn’t want it. I’ve heard positives and negatives about it. Now I’m worried and upset.