Yes, anything you like.

See Doing Useful Work on State Entry and Exit for clue on how to trigger other work on state change.