Check this out before you borrow from your own 401(k) to buy a house