Yes, you can still contribute to your health savings account if you have not enrolled in Medicare. You are able to contribute to an HSA as long as you delay enrolling for Medicare Parts A and B.
Prior to contribution, look into any applicable HSA tax breaks, employer contributions or other benefits that may be more valuable than Part A coverage.