If the money in you 401(k) is yours and vested, you can withdraw it BUT you'll have to repay the loan and also have to pay federal and any state income taxes PLUS a 10% penalty if you are under 59.5 years old on whatever you withdraw. That's very expensive and can jeapordize your long term security. There is sometimes an exception for withdrawals made and repaid within 60 days, but ask the plan administrator about that, as you may have to roll it over to an IRA first.