Yes you can. However, you need to show that your depression is so severe and so chronic and long lasting that you will be unable to work for at least a year. Fortunately for many people with depression, medications are a pretty good alternative and often provide people with relief from their symptoms after a relatively short period of time. If that’s the case you may not have a good case for Social Security Disability benefits.
There are other people for whom the medication does not work well or stops working after a short period of time or the depression just seems not to be able to lift. If you can show that that is the case and that your symptoms are so severe that you will have been unable to work for at least 12 months then you have a good claim for Social Security Disability benefits.