Yes. The "Execute by name (Advanced)" option works essentially the same way a spoken command would, in terms of dynamic command sections/segments.
E.G. if you use
Execute command, 'Water 3 8' (by name)
then in the executed command, "{CMDSEGMENT:1}" would return "3", and "{CMDSEGMENT:2}" would return "8".