It's certainly possible you may be able to take melatonin during your pregnancy. However, unless your doctor has confirmed it is safe it would be unwise for you to do so. As with anything you do while you are pregnant, it's not just a case of thinking about how it may affect you. It's also important to consider how it may affect your baby. A doctor is the best-qualified person to offer the necessary advice.