HSA Contribution to a partial year HDHP

My family and I had a HDHP until June 1, 2024 when we switched another plan through my employer.  Can I still contribute prorated amounts to my HSA for the 5 months I was covered in 2024, even if we are no longer enrolled in a HDHP?  My husband and I are both over 55.