UTI? Or STI?

I had sex for the first (few) time(s) this past week and now it burns when I pee. I also have to pee often but when I try to go there’s not much urine. I do have a gynecologist appointment for in a day or two. It’s more likely an UTI than an STI right? How do I tell the difference? Also I started my period during the first time and had it almost all week. I still bleed every time I pee. (Its on the TP now not in the toilet because it’s such a small amount.