Do UTIs go away on their own?

So

Can the body get rid of a UTI? I was having pretty intense symptoms yesterday but today I've been feeling pretty much fine. I've been drinking a ton of water and peeing like every 40 minutes. Could it be possible I actually managed to flush out the bacteria? Or has it happened to you where the symptoms go away for a day or two and then come back?