Yes. Once in your lifetime, you can move funds from a Roth IRA to an HSA, but only if you are currently eligible to contribute to an HSA. Transferred funds do count towards your annual contribution limits. You cannot transfer funds from a 401k to an HSA.