Maybe YES , Mabye NO - Depends on the person or condition of stress or depression, Only a doctor is the right person to give an answer.
I think to reduce stress, better see other alternatives you may have. Go on holiday (mountain, fields, sea), concerts, spend more time with friends. Try to find someone to pass the time. If you have any concerns, talk to someone. Listen to any interesting sound, may i recommend you Hiroshi Yoshimura – Music For Nine Post Cards
I think the real stress inside us does not erased with masturbation, yeah masturbation seem to be relieved and ready to go to bed then to sleep but this is not the permanent solution or the right choice. IMHO.