Yes. Mental illness is a frequently used basis for getting Social Security disability benefits.