UTI or something else?

For about a week in each month for the last few months I’ve had pain in my lower abdomen and pain when I pee, the pain isn’t too bad but it’s definitely there. Then it occurred to me that it could be a UTI? Also when I have sex and he cums it almost burns where my ovaries are? But the pain always goes away. Can a UTI last months like this?