Unique access code after purchase

I am selling an experience on my website. When people make a purchase, I would like them to receive an email with a unique access code to the webpage that contains the experience. The code should then give them access. Is this possible?