Reducing redundancy (code duplication) in templates
Yep, you can do it in a simple manner, just follow this

It simply states you can (for example) use
&lt;?php include 'page.header.inc'; ?&gt; on a template and include the code for that header.
In this .inc file you just enter the code you want to reuse