Yes and no. I find sitting at my computer too long to make the depression worse. I need to change my environment to get out of the icky headspace. It's very much that meme, I'm going for a stupid walk for my stupid mental health and I'm mad that it's working.
But it does help me escape from some of the anxiety inducing things. My last few months have been waiting for certain things to happen. I'm not a patient person. Losing myself in stardew has helped keep a lot of that anxiety at bay.
For what it's worth, I hope your depression eases and you're able to start thriving!