You should not because you do not know how the implementation will blow up. Even if it is "instant", there may be interrupts. You should avoid global variables when possible anyway because then your code will be less instanceable, less recursion-capable. It's also better for debugging to separate it.