The answer is: if certain conditions exist. If you have a switch statement where none of the cases set any local variables (e.g. they all just go off and do something to global state somewhere) so that they are not dependent on the local function's context, then they could all be put a script dictionary indexed by the key values you would use in your cases. It would be two lines - one to look up the script, and the other to invoke.
Basically, the fact that you're asking the question means to me that you think it's possible or have a hint it will. I'd say, if so, try it out! You'll find your answer, and it will make more sense in the long run.