Have user register during affiliate sign up?

Was wondering if the user can be registered to website while signing up for the affiliate program. I noticed it let me create a user, and once I log in as that user it offered my the affiliate.