Quote from telozo:
Of course you can take out your 401k money any time you want, but you have to pay taxes that were deferred, and a penalty on top, if you are not at least 59 1/2.
This is only true of an IRA, it is not as easy to withdraw 401K money if you are still employed, you need to take a loan against it.