Yes, environment variables can be used.

1.  Environment variables from the shell, which exist in our agent environment
2.  Variables already exist for that user on the system when that user is logged in
3.  They can be setup in previous commands.