Yes, but you will also have to pay the tax on the money withdrawn unless your 401k allows loans from the funds. More specific information is needed to tell you what that tax may be or if the loan is available to you. You would need to speak to the administrator of your 401k and also to your tax adviser to find out this information.