Sometimes, replacing a faulty part doesn't make the light go off. I accidentally broke the coolant temp sensor on my 95, which predictably caused a check engine light.
Replacing the CT sensor, which was completely broken in two, did not make the light go off. Erased the code, and the light went out.
Fast forward a couple months, and I reset the timing belt as it had been installed incorrectly (ironically, this was what I was trying to check when I broke the CTS). Since I had previously broke the CTS, I unplugged it before removing the timing belt cover. Forgot to plug it back in before starting the truck, which again set a CEL. Once again, the light did not go back off until I plugged in a code scanner and erased the code.