Yes, you can maintain the association of the referrer with the cookie. That's a standard expectation.