Making music is a great outlet for any kind of emotion. But it's a long journey so you should manage your expectations. You won't be writing the most sophisticated songs at first, but as long as it's from your heart, it's good nonetheless.
I can't relate to your depression, though, so I don't know if this would be too overwhelming. If you manage to stick with it, the sense of fulfillment is amazing though.