No. There is no exception for the 10% early withdrawal penalty for closing costs funded from a 401(k) account. The withdrawal is taxable as ordinary income on your tax return and based on your age you may also have a 10% early withdrawal penalty liability on your tax return.
Only funds withdrawn from an IRA are eligible for the early withdrawal exception and only for a first time home purchase and limited to $10,000.
See this IRS tax top topic for early withdrawal exception for distributions from other than an IRA - <a rel="nofollow" target="_blank" href="https://www.irs.gov/taxtopics/tc558">https://www.irs.gov/taxtopics/tc558</a>