I have had a few UTI's while pregnant and have taken about 4 or 5 different types of antibiotics both class A and class B..... It is better to take the antibiotics to get rid of the infection than to not take them and let the infection progress..... UTI's left untreated can lead to kidney infection which (believe me) is not pleasant and can result in hospitalisation!!