Wrong. Can you buy one now? Probably not. Bankruptcy will give you the ability to save for a down payment. Also, you will have the income to qualify for a mortgage, something you can't do now because your debts take up all of your disposable income. Most people can qualify for a mortgage within about two years after their bankruptcy. If your debt is too high, you will never qualify even if you have a perfect payment history.
If you are overwhelmed by debt and would like a fresh start - give Miller & Miller a call to schedule your free initial consultation.