Is melatonin safe when pregnant?

I take this to help me sleep and I just found out I was pregnant haven't been to the dr yet