2006 Pontiac G6 3.5L Automatic 156k miles.
Are the oem stereos for 2006 Pontiac G6s VIN specific?
I.E., if I replace the existing oem stereo with an oem stereo from a junk yard, does the replacement stereo have to be reprogrammed by the dealer to match the VIN in order to work - or can they be swapped at will?
I'd suggest checking in your owner's manual for radio functionality and security. If it has some kind of built-in anti-theft system, then it certainly won't work in a different car. If it doesn't, it may or may not. My '99 Ranger had a bad LCD screen on the original OEM radio, so I swapped it with a CD Player/ Cassette Player combo OEM stereo (fancy for 1999!) I had no problems at all, but your car is 7 years newer and a GM product. I'd say calling a dealer or an aftermarket, custom stereo company with your VIN may give you a good answer.
I know on that vintage Saab (a GM product at the time) the radio is "married" to the chassis VIN and needs to be reprogrammed with a Tech2 scan tool if put in another car. I don't know if this is the same for Pontiac but it would not surprise me. It might even be the same radio.