Porbably not really.
Despite hearing some touting magic foods for this or for that, especially cranberry, there has been no known foods able to effectively prevent cystitis (lower UTI).
The bottom line is still personal health + lifestyle + preventive use of antibiotics after eliminating potentially correctable underlying causes such as stone, poor bladder
emptying, diverticulum, etc. Ask urologist for detail ...