UTI Meds Pregnancy

Patient: I am six 5 weeks pregnant and my doctor prescribed nitrofur macr to treat a UTI Bladder infection. Is it safe? I was in the ER when she prescribed this to me, I have not taken any yet, and want to make sure it’s ok?