Uti in pregnancy

Pretty sure I have a uti.. I have a prescription for macrobbid that I was given Incase I got a uti. Is this safe to use in pregnancy. I’ll be 11 weeks Wednesday.