Cranberry pills ?

I’m prone to UTIs and I usually take a probiotic with cranberry pills, but I know that d-mannose (the active ingredient in cranberry to prevent UTIs) can actually be used to PREVENT pregnancy. Does that mean cranberry pills will prevent pregnancy too?