Uti and pregnant

Bebe • Mother of 2 amazing boys🙇🏽‍♂️,Girlfriend to an amazing boyfriend 💏 , MC 9/25/18👼🏽 my 🌈 👶🏽 8/26/19 currently pregnant with baby #3 a baby girl 🎀 coming 2022

Just came from the doctor and found out I have a uti 🤦🏾‍♀️ I told him I’m pregnant so he prescribed a medicine called macrobid has anyone took this? And did it work I’m kinda skeptical about talking meds and I’m pregnant