A Check Engine light is an emmission system fault warning.
There are approx. 60 faults that will trip it.
There is a diagnostic module to retrieve the correct fault. Until you retrieve these codes, it's a crap shoot. Can be as simple as an unplugged sensor/vac hose.
At the price of parts, I would not change anything until you have read the diagnostic codes . That is why they are there.