Sex and UTI !?

I was having sex with my boyfriend and during it I was holding in my pee... The next day it burned when I peed... Could this be a UTI? Like did I create one while I was having sex??
And it COULDN'T be nothing else because he's very loayal and is with me. I'm also loyal with him... Please comment below !!! Need answers !!!