I have a uti😣prescribed macrobid?

Shari
Is macrobid safe to take while 16 weeks pregnant?