"Use transaction" as in-script variable

When testing the script from Designer it is possible to set "Use transaction". Is it possible to somehow set "Use transaction" inside script i.e. Session.Variables.Put("UseTransaction", True)?