Yes, that would be possible. For instance, you can have a custom action "without sequence" executed on the "Finish" button that will shut the machine down. You can condition this custom action based on the checkbox.
However, I am not so sure why would you like to shut the machine down after the installation (I can't really think of any scenario in which that would be needed).