You do not need to enter the code again.
Login to Origin with the account you have the Sims 4 on and rightclick it in your Game Library. Then select install.
You must have it on another account than the one you are currently using. Login using the email address and password you used when purchasing/installing it.