That depends on where you are and what version you bought.
If you bought one of the digital editions, then the code you received is indeed your retail code. You can use it to get 1-day early access, and to play the game on launch.
If you bought the Collector's Edition box, then the pre-order code will give you the 1-day early access, and it will be valid until 5 days after release date. By that time, you have to update it with the actual retail code that comes in the box (or you will not be able to play until you do)
If you bought the physical standard edition box, then it depends on where you are. If you're in Europe, then the pre-order code is your retail code. You can use it for the 1-day early access and for the game after launch.
If you're in North America, then the same rules apply as with the Collector's Edition... your pre-order code is valid until 5 days after launch, and by that time you have to replace it with the code that comes in the box.
If you're somewhere else in the world, then you may want to check with your retailer what policy they use.