Uti help!!!!!!

I cured my uti with cranberry juice ..lots and lots of it lol but i have moments when i cant get to it so if i take the azo cranberry pills will that help flush my urinary tract?