No. You most likely still have to pay. Normally upon filing a bankruptcy, student loan debt is non-dischargeable; therefore under normal circumstances there is still a need to continue student loan payments or face the consequences of default.
However, under extraordinary circumstances a government-sponsored student loan can be discharged if the debtor can prove in an adversary proceeding that not discharging the debt will give an “undue hardship” on the debtor, as stated in the US Code: “unless excepting such debt from discharge under this paragraph would impose an undue hardship on the debtor and the debtor’s dependents” 11 USC § 523(a)(8).
Non-dischargeable debts may not be eliminated, but working with a bankruptcy lawyer who is also an experienced negotiator may help in getting things under control.