Burning/Peeing Similar to UTI after sex? could it still be a UTI?

Twice now, I've had sex and exactly two days after, after I take the first pee in the morning it burns really bad and I can't stop peeing yet nothing comes out. It only lasts a couple hours and then it's gone. I'm scared to have sex again because I don't want to go through that pain again. Help!?!?!