In short, yes.
Me explaining it correctly ... :-X but I'll try.
By using a global variable you can pass it to another script.
I use the following for a mission to get a chopper to cycle on a route, drop troops, go to a holding area and wait to move and drop more troops.
In the Heli move script:
Hold = false
In the troop dropping script:
Heli drops troops .... then
#wait1
Hold = true
?("alive _x" count units paragroup0 == 0) || ("alive _x" count units paragroup1 == 0): goto "waitcount"
~3
goto "wait1"
#waitcount
Hold = false
This works great for me, so you might use the same idea.