Yes, any script you setup outside of your cgi-bin must have a .cgi extension rather than .pl. If the file you are using has a extension other than .cgi and you would like to run it outside your cgi-bin you can just rename the file so it will execute properly.