Quick answer
Sometimes, but many covered student loans are not discharged unless the debtor proves that repayment would impose “undue hardship.”
General information, not legal advice about your situation. Laws, dollar amounts, and local rules change, so check current requirements with the official sources below or your court.
More detail
Discharge usually requires a separate lawsuit within the bankruptcy case, called an adversary proceeding, and a court decision. Not every education-related debt falls within the same statutory category. Current federal procedures may allow government lawyers to recommend discharge in appropriate federal-loan cases, but relief is not automatic.
Related official reading
These sources do not endorse Bankruptcy Buddy.