If yu are speaking of a urinary tract infection they are common during pregnancy and shouldn't raise concern if taken care of properly and on time
Ive had quite a few of urinary tract infections and my baby is fine and im 21+4.
I had UTIs all the time with my son and now i'm almost 13 weeks and am on anti biotics for one right now. They are common and both my babies are just fine even with me having them.
I dint get one in my first preg so its all new to me