Yes. Filing bankruptcy triggers an automatic stay that immediately stops foreclosure proceedings. Chapter 13 allows you to catch up on missed mortgage payments over 3-5 years while keeping your home.