melatonin during pregnancy?

Is melatonin safe to use during pregnancy? If not, why is that?