No, Social Security contributions in Canada are mandatory and you cannot have them returned to you.
You will retain the credit for your Canada Pension Plan (CPP) contributions and be able to claim a government pension upon reaching the retirement age, however it cannot be cashed out early.