Not directly, no. I suppose you could put the logic in a proc and conditionally execute it inside the proc based on the value of the parameter passed to it, but whatever is in the before-sql area will always run.
-craig
"You can never have too many knives" -- Logan Nine Fingers