Do you need a radio code to replace the factory radio with a new CD player in a 1999 grand prix?

No, you dont need the code if your gonna put in an aftermarket deck. The only time you would need the code is if you took the stock radio out and unpluged the harness, so its not a problem with a new radio.