2008 Pontiac Grand Prix - Did new parts cause codes?

Hi, I changed the ignition coil & the ICM on a 2008 Grand Prix 3800 v6,… with aftermarket parts notOEM, anyways, now the engine light is on with 5 different codes not even related to the original problem, is it showing these codes because the parts are generic.? what can I do about it besides putting in OEM.? One is an coolant sensor, and 4 are related to the catalytic convertor. Im sure there is nothing wrong with those.