My depression was due to childhood trauma. No amount of purpose would have changed that. I had to deal with my demons before I could move into the kind of positive space where purpose made any kind of difference.

edit: but yes, now that I have done that work, purpose is good, and what keeps me positive and away from the black dog.