PIR Sensor Question

Would reversing the logic work?

if (SENSOR == HIGH) {
digitalWrite(TRANSISTOR, HIGH);
} else {
digitalWrite(TRANSISTOR, LOW);
}