as long as its from a 2005 Grand Prix. The 05 That was in the other W bodies such as the Impala was a L67
there is nothing different between the 2 motors that has any effect on the PCM.
You may find differences such as a Alum. oil pan and Black Valve Covers that are different than your 04 depending when it was built. These wont effect the installation or functionality