No, it is enough that they use your referral link to access the website. It is, however, recommended to share the discount code with customers. Not only they will be happy to get an exclusive discount, but also the tracking of the referral will be more reliable in case they have rejected cookies.