Suspected UTI Treatment

Sinead

doctor on call prescribed Nitrofurantion 50mg 4 times a day. my urine sample was cloudy but when dipped is was okay. he advised me to take these. Are they safe at 18 weeks pregnant