It depends on the cause. If the pill is designed to balance electrolytes for instance and this is the cause of depression, they are the answer. Of course it is even better to find the reason why the balance is ruined in the first place, but I guess this is another subject.
I know few people who 'run' on pills for decades and it looks this suits them fine. I know other who search for the other way, trying to change behavioral paths in their lives, adapt to stressful situations, going to group therapies and so on.
There is no right or wrong, yes or no in this case. Every story is unique and so is the answer.