Although you can place cgi scripts in random directories throughout your site, it's best if you keep them in their own directory, the cgi-bin. This minimizes security risks and allows easier maintenance.