code numbers from a free code pull never identifies a bad part, just a failed system.
there are 2 bolts attaching to the throttle body and a wire connector.
i would have it checked first to confirm before spending the money to replace it.
Roy
RepairPal Certified shops can diagnose and repair your 2002 Pontiac Grand Prix. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.