Yes, the law allows a one-time transfer of IRA assets to fund an HSA.
The amount transferred may not exceed the amount of one year’s contribution and individuals must be otherwise eligible to open an HSA. Transfers are not taxable as IRA distributions. However, amounts transferred into an HSA from an IRA are not deductible. IRS Publication 969 provides more information.