Pain after sex

I’ve had sex twice so far and each time I do , I seem to get a urine infection. It often hurts to pee and feels uncomfortable after I have sex. Is this normal? Will it ever stop?