The knock sensor isn't vital to be a part of the engine, but it is critical if you have the plug there is one connected at least, even if its tucked out of the way, and empty plug will massively flatten ignition curves and affect performance. Its basically the same as the sensor telling the ECU that its knocking.