Help me

Karla

Hey , well I have a question . When I go to the bathroom and pee it hurts like hell and I wipe and there’s blood. But it’s not my period. I thought it was a yeast infection and I went to the doctor and they gave me a yeast infection pill. But that was before this happened . I think it’s a UTI . What do y’all think ?