Yes and no
has been shown in multiple studies to lower one's risk of uti.
It follows that the more actual cranberry is in the juice, he better the product would be at prevention. Cranberry juice "cocktail" is actually pretty dilute - usually <10% juice. Go for products with high cranberry content ("100% juice"). Hope this helps!