Yeah. As above. Avoid working when you're sleepy or tired because it won't go into your head and even if it does the recall will be bad.
If it's a piece of coursework or something then it's a different tjing, eg. You can complete tasks like essays even if you're tired, but for actually learning you need to be awake.