If the light stays on it indicates engine malfunction, or an emissions component has failed.
It’s safe to drive your vehicle home or to a service shop. Visit an auto service as soon as possible.
Usual problems: failed oxygen sensor, vacuum hose leaks, loose gas cap, failure in electronics
The Electronic Control Module controls the operation of the vehicle powertrain, engine and transmission. The main purpose is to keep the engine running at top efficiency with the lowest emissions.