Yes.

The computer will supply the "Ground" to the check engine light when there is an error. The other wire of the light is connected to the ignition switch ("On").

dave w