Difficulty sleeping!

Does anyone know anything about taking melatonin gummies to help sleep while pregnant?! It says non-drug non-habit forming all natural, but that's not to say all natural herbals can't hurt u too.... Does anyone know if it would hurt the baby or has ur doctors had anything to say about it?!