AZO uti meds and early pregnancy

I found out I was pregnant Saturday. Got a uti on Sunday. Took AZO on Monday and today. Did I do something wrong?? Is that not safe for pregnancy? My OB couldn’t see me until next week