Yes, but I would look at them as separate transactions and decide if that is the best way to fund it.
IMO you should always take advantage of an HSA eligible account to make an HSA contribution, unless you judge that your HSA is over-funded and you don't expect to ever have enough medical expenses to use it for medical reimbursements. The contribution reduces your AGI, which is great for that ACA subsidy, so let's take it as a given that you will make an HSA contribution.
Now decide where you want to fund it from. Is your TIRA the best place, or do you have other funding sources? If you have other sources like taxable account savings, you might fund it from there. This would leave you with lower taxable income, which is better unless you need more to stay out of Medicaid.
If you're able to fund the HSA with taxable money, you have yet another option, which is to take the extra tax room the HSA contribution gave you to make a Roth conversion of the same amount. This would also put you in the same place taxable income wise, but lets you increase your Roth balance. I'd rather have money in a Roth than taxable unless I have an expected near term need for the income and cannot yet withdraw from the Roth. But your first post implied you are > 59 1/2 so I think you would have access.