steroid in second trimester of pregnancy?

just wondering if anyone had to take a steroid such as prednisone while in their second/third trimesters for medical reasons?

if so, did it affect your baby at all?