It’s also a good way to ensure you dont oversleep your alarm. Just make sure it’s about 8 hours before waking up, not right before bed if those are different
I don’t have depression, but I do have executive dysfunction (yay ADHD) and I can stay in bed for hours before getting out. When I’m out, I don’t usually go back unless actually sleepy. So for me at least it works. Might of course be different with depression.