Cranberry pills for start of UTI?

Can you take cranberry pills in the first trimester for the start of a uti?