Uti question

Ladies I've been to the doctor & they think i have a urine infection , they have sent my urine sample off to test & have given me antibiotics. Question is - is it normal for it hurt to have sex & after sex?

Currently pregnant & worries to high heaven I've hurt the baby 😢