Generally, being delinquent or in default on a student loan reduces your chances of receiving forgiveness. With that said, check the qualifying criteria of your preferred forgiveness program.
For federal loan forgiveness programs, for example, you would have to rehabilitate or consolidate a defaulted loan to become eligible for relief.