Uti? Yeast infection?

So it hurts when I pee and sometimes it just hurts and burns down there. And Ive had the need to pee a lot. But I just had sex and it didn't hurt that much at all. I thought UTI and yeast infections made sex unbearable???
I've been on the pill for a year and we don't use condoms