Yes. Your 401(k) and IRA retirement accounts receive protections from bankruptcy. Unless you have very strange or extraordinary circumstances, your bankruptcy estate generally does not include your retirement accounts. Your trustee will not ask that you take from your retirement accounts to achieve debt relief.