Typically yes. A foreclosure on the first mortgage does not satisfy the second, and the second lender can still go after the money owed under the contract. You might talk to a local bankruptcy and foreclosure attorney to find out what options you may have. This is a very common situation and there are solutions, but each state is different. Good luck.