The Check Engine Light might not be related to that noise, but without any of us knowing the exact diagnostic code that has been stored by the vehicle’s OBD system, nobody can tell you why the CEL is lit-up. If you go to Auto Zone, or Advance Auto Parts, or O’Reilly, or (possibly) NAPA, they can determine the exact diagnostic code(s). Then, you can return to this thread to post the code(s). The format will be something like “P0123”.
As to the noise, I think that it could be the sound of a timing chain that is becoming loose–and that can be problematic. Once the noise of a loose timing chain appears, it could be days, weeks, or perhaps even months before the engine “jumps timing”, but the trick is to avoid that situation. A visit to a competent mechanic (that means NOT going to Midas, Meineke, Monro, Sears, Pep Boys, or–God forbid–AAMCO) is what you need to do. Ask friends, neighbors and co-workers for recommended independent mechanic’s shops in your area.
I am assuming that the CEL is steadily lit-up, rather than flashing/blinking. If it is flashing/blinking, you need to have the vehicle towed to the mechanic’s shop, lest you cause severe damage.