It's definitely possible. If your timing is set incorrectly, or if your timing belt is off a tooth, it can massively affect your timing, possibly to the point that you're pissing off the knock sensor.
Also, are you sure you've got the sensor wired to the correct location at the ECU?