Hard to cook when depressed

Hi. Does anyone else find it hard to cook when depressed? I find myself ordering food (delivery) instead of cooking lately. I don't feel like cooking although I love eating and it makes me feel good for a while. Also cooking takes me more time than eating lol.