Can I take money out of my 401(k) to buy a house

Can I take money out of my 401(k) to buy a house