Should I go to the doctor?

Im so mad. I haven’t gotten a UTI in sooo long. I was Sleeping and holding in my pee in my dream LITERALLY and I woke up having to use the bathroom. Everything was fine. And then I had to pee again and it hurt. I drank a lot of water and then it hurts again so the next day I got the AZO defends against protection. Should I go to the doctor or wait it out w the defence. Im so annoyed.