Before answering YES/NO, let me make the context clear:
The .tpl.php files live near the city gates and are ready to produce code for the rest of the world. Moving towards the core of the city (our drupal site) there is a very strong file: template.php. This file supports .tpl.php by providing new variables, changing variables, getting the HTML ready for pieces of our site and more.
Inside template.php there are 4 categories of things one can do:
The first two change the css/js files loaded on a site (the one's we see as @import blah blah when we view the source code, and we can tell Drupal not to load a file (even if it a default module.css or anything else)
The third is used to change things around, regarding the whole page element of drupal. So for example, we can move things around, from a node of the main content to the second block of the sidebar, etc
With the last one we can change variables inside any form in drupal. Main methodology: call debug($form_id) to take the unique id of the form you want to play with
then target this form by if ($form_id == blabla)
, then call dsm($form) or debug($form) to see what's inside the specific form and alter variables, etc.
And YES, of course you can use both a preprocess function AND a specific .tpl.php
for example:
function MYTHEME_preprocess_node(&$variables){
if ($vars['type'] == 'article')
$variables['blabla'] = ... // creates a variable to be used in node.tpl.php
}
then create node--article.tpl.php and print that $blabla there