Credit problems won’t prevent you from obtaining a mortgage, but they will increase the cost. So try to put some time between your problems and your home purchase so you can reestablish good credit. Keep in mind, however, that interest rates, home prices, or both might rise while you work to boost your credit score.