is cranberry capsules safe to take?

I'm prone to uti exspecially when pregnant is it safe to take cranberry capsules ?