Uti at 9 weeks

Karla
I went to the er worried I was loosing the baby since I was having cramps. Turns out I have a uti so they gave me macrobid I haven't taken it and just have been drinking lots of water and cranberry juice. Have any of you taken it and been OK with no problem for the baby?