Well, a person can technically withdraw from the 401k account before retirement without too much of a tax benefit if it's for a "financial hardship" I think. But rather than worry about that, your friend should be saving his money for a house in a savings account. 401k accounts should be a last resort.