It can, it depends. If it's stress-related, and I just need to get my mind off of things and relax, cannabis helps a lot. That's one of the things it's really good for.

However, if I'm feeling depressed because something bad happened or something of the like, cannabis won't help, and can sometimes make it worse. I generally avoid smoking when I feel depressed.