Staying up too late is not good for your health and can make you tired the next day, it can make you hallucinate, cause you to not to think straight etc.
You should aim to get to to bed on time and get at least 8 hours of sleep to be able to function good the next day.