It is, yes. If you're ever in doubt about a little thing like that, make a test event with that in a script box and run it. You can use the debug window to check if what you wanted to happen with variables happened, and if it won't work you'll get a program error. Then you can ask for help on that.