Melatonin in early pregnancy

I don’t have my first appointment until next week so I haven’t spoken to my doctor yet. Is 3mg of melatonin okay to take to help me sleep? I’m 6 weeks tomorrow