Do I have a UTI?

celeste

I’m currently on my period but it hurts when I pee. Not the whole time, but near the end. It kind of just feels like a bad cramp. I’m worried it’s a UTI but I don’t have any other symptoms really. I think I’m going to go buy an at home test, but I don’t know what to do if it’s positive. Do I go to my GYNO? Or just a doctor? I don’t really have a real doctor lol. Someone please help me