Well, hardly ever. Sometimes you stay up doing something you love, but that can even take a toll on your mental health in a different way. Obviously, getting an A is a good thing, but if you really haven't learned what you're studying, and you're just trying to pass the test, what's the difference?