Yes, a health savings account (HSA) is great for saving for medical costs in retirement. You need a high-deductible health plan to qualify. Then, you can use the funds for most out-of-pocket medical costs and Medicare premiums, except for Medigap.