Can merge fields be set in the header and footer in Excel/Word templates?

 

Merge fields of the master object can be used in the header and footer. Child object fields cannot be used.