It's possible, but your situation would have to meet one of
the IRS exceptions, since unemployment on its own isn’t an exception. Please see the TurboTax FAQs I've attached
below, and IRS
Retirement Topic - Exceptions to Tax on Early Distributions, to see if you
might qualify under one of the listed exceptions.
What are the exceptions to the penalty for an early
withdrawal from my 401(k)?
https://ttlc.intuit.com/replies/5881082
Can I make a hardship withdrawal from my 401(k)?
https://ttlc.intuit.com/replies/3302066