Referral marketing

Is there a way of adding referral unique link to each contact/lead so when they share email on social media and links can be tracked back to them

Is there a way of adding referral unique link to each contact/lead so when they share email on social media and links can be tracked back to them