It depends on the type of contract. If you have a service contract with the federal government, you may not be eligible for student loan forgiveness through the Public Service Loan Forgiveness Program.
However,  if you have a procurement contract with the federal government, you may be eligible for student loan forgiveness through the Federal Employee Student Loan Forgiveness Program.