The ECM will retard the timing if it receives a knock sigal from the knock sensor. Yes this will cut your performance long enough to get the knock to go away.
I would not unplug the sensor if I were you. because if the sensor doesn't tell the ECM to pull timing upon knock, you could damage your engine.