In California, you cannot pass the smog check if your Check Engine Light is on. Its a heck of a racket.
If the codes and light come back on, you are still screwed.
Hawaii has it's many liberal faults, but the CARB smog Nazis have not infiltrated here yet.