No. Funds cannot be moved directly from a 401(k) into an HSA. However, you may be eligible to move money from an IRA into your HSA as a one-time transfer, if you are eligible to contribute.
Source: "Publication 969 (2018), Health Savings Accounts and Other Tax-Favored Health Plans.”
Updated: