Is 1 am too late to take melatonin?

I can’t sleep and they help me. But I don’t want to be overly tired for work or tell my body to start going to sleep at this time. It’d be a one time thing, but I don’t know if I should or not. I have to be awake in five hours and im nowhere near capable of falling asleep any time soon