The file functions.php is automatically loaded on the front-end interface of your WordPress site, as well as the back-end admin page. Each WordPress site has its own functions.php file, so only the file for the theme being actively used on your site will run.