Is it too late to take a melatonin vitamin to sleep?

It’s 10 pm and I have to wake up at 5:45. Is it too late to take one?