Can I take melatonin 37+5 days pregnant ?

I haven’t slept in 24 hours. My clinic is closed and I have horrible insomnia. Would it be safe to just take 2? I’m mentally exhausted