Reoccurring UTI

Kirby • 22. Can't wait for my baby boy to get here! Hurry up August!
Hello ladies,
I am a little distraught because I am 16 weeks and have already had two urinary tract infections. I know they are common in pregnant women but I am worried it's going to cause miscarriage or hurt my baby. I had one about two weeks ago and my doctor just called and said said it never went away and that he is prescribing me a strong antibiotic. Jas anyone else gone through this and had a successful pregnancy? I have had one miscarriage in the past and every little things just worries me now. 😔