Is $1 in a script action occurring after a copy action the o

If I have Action A that copies a file from X to Y. And Action B runs a shell script with the $1 argument. Is $1 the copied file in Y just as any other Hazel action would treat it? Or is there some except for scripts because they are run outside of Hazel?