UTI help

Hi , I recently got a UTI and took the cranberry pills to help it. It felt like it went away but it kinda burns a little when I pee again. Do I need to go to the doctor and get the medicine for it? Or will the cranberry pills flush it out of my system?