Can you get rid of a UTI without having to go to the doctor?

I think I have a UTI because I seem to get them right after a long time of not having sex and then having sex. I just wanna get rid of it now. I don't have no off time to get off work.