You bet! As long as the compression socks are medically necessary, then they're an eligible medical expense and can be claimed through your HSA.
Even better is that there isn't a limit as to how many pairs of compression socks you can claim per year, you just need the funds available for reimbursement.
For more information about the eligibility of compression socks, check out this CRA link under Braces for a limb.