Hi, teachers. Is this correct?
The burglar didn't want to risk setting off the alarm.
Yes, it's grammatical and possible.