yes and no
it is possible for most sensors to go bad or not function properly without setting a code, especially valves that only tell the computer open or closed.
Only when they are unpluggesd from the wiring harness will they throw a code, the computer has no feedback on many sensors, it just knows if a circuit is complete.