Yes, you can safely use a CPAP machine while pregnant. There are studies that suggest that CPAP machines are effective at treating sleep apnea in pregnant women.