Questions

So I just found out I have a urinary tract infection and I'm on mess for it, my ob doc didn't really explain to me but can it cause a miscarriage? I'm well about. 12 weeks. Kinda worried but not too worried