yes, you can always pass variables to a cgi script provided you write your code to look for the variables. the easiest way is to pass the variables (key/value pairs) to your script is by passing them inside the url seperating multiple variables (key/value pairs) by '&'.
ex.
Code:
http://someplace.com/some_cgi.cgi?some_var1=some_val1&some_var2=some_val2
the script would then get the value of some_var1 and some_var2 and process them in some way.