Sometimes you might look and feel tired, and although it is true that the lack of sleep can result in the lack of energy and an overwhelming feeling of fatigue, it can also be a sign of depression.
It is like a vicious circle, as depression can also cause sleep problems and when you are sleepless for a long time, you lose interest in life. You might stop doing things you enjoy, because you feel very tired.
So, the answer is YES, it could be depression. The lack of quality and restful sleep can also lead to anxiety.
A psychotherapist can help you not only recognize the problem and treat the depression, but also to plan your day with you, so that you will have enough time to sleep.