Yes, it can. Many people find solace in music when dealing with anxiety and depression. It can provide comfort and serve as a form of therapy.