Some studies suggest cranberry juice can help prevent UTIs by preventing bacteria from adhering to the walls of the urinary tract. However, it's not a substitute for medical treatment.