Yes, in the Data Source in your Taskpane, select the field associated with your checkbox and right-click / go to properties. Validation and Event Handlers Tab.
However, to do what you are trying to do, you should look into conditional formatting, not scripting.
Hope that it helps.
Regards,
Franck Dauché