HSA Contributions

My wife is eligible to contribute to an HSA as she is covered by a high deductible cobra plan.  She will be covered by Medicare as of June 2023, the month she turns 65.  Is she eligible for HSA contributions through May 2023?