No. A foreclosure affects your credit score negatively. Therefore, it is really difficult and you cannot obtain a new loan for at least two to three years afterwards.