Yes. Depression is triggered by many reasons. Depending on the individual's life style and eating habits, causes for depression too vary.
Yoga takes care of every aspect in an individual's life and offers effective solution. Take for example, insomnia is one of the reasons for depression. Yoga advises Sarvangasana,Shavasana and Surya Namaskara.
Pranayama itself has several varieties likeSurya Bhedana, Ujjayi, SitakariShitali, Bhastrika, BhramariMoorchcha and Plavani. Each of these varieties of Pranayama looks into individual's lifestyle, habits etc.
For example, Moorchcha, one of the wings of Pranayama brings the mind in the profound state of quietude. This state is absolutely necessary for arresting depression.
Hence Yoga is an indispensable therapeutic method that cures almost all ailments.