Ambien

Can you take ambien while pregnant? My husband takes it every night and I haven't slept in what feels like days. Unisom didn't help me. Can I take it for just one night and it not affect the baby?