Yes, bankruptcy will stop a foreclosure, but only if it is filed prior to the foreclosure sale date. Foreclosures can occur in as little as 21 days in Alabama. If you have already received a foreclosure notice, you need to consult a bankruptcy attorney immediately.