no .. if /cgi-bin/foo.pl runs, it's because the web server is configured to execute the file and send it's output whenever a GET/POST of that file is done.. it doesn't matter what is making the GET/POST..
Again, this would be a Very BAD Thing if you could get the source .. people would see your code such as passwords, db connection strings, sql logic, and code itself to see and exploit bugs.