A knock sensor helps prevent pre-detonation. That is when the fuel ignites too early, causes the engine to 'knock'.
You can run without one, but as Wayne pointed out, if you don't then you are not protecting the engine.
Pre-detonation can happen even with a dud batch of fuel, so on a performance engine i would strongly recommend using a knock sensor.