Foreclosure isn't always the fault of the borrower, especially considering the latest "banking crises". Instead of working with a buyer to keep their home, many lenders merely foreclose, collect the mortgage insurance, flip the house and repeat the cycle.
No, I wouldn't buy a house that had been foreclosed on, under any circumstances.