Yes, a faulty knock sensor can affect the idle. The knock sensor plays a crucial role in optimizing the ignition timing of the engine. If the knock sensor is not functioning properly, it can cause the engine to idle poorly or even stall.