Yep.

Anytime $1 is used in a script it will be replaced with the first argument given on the command line. $2 is the second, $3 is the third, and so on. $0 is actually the name of the script, so...