The following code is working perfectly when it's accessed on it's own. Should I expect any header problems or anything when I insert this into the Generic Header of my board?

Code
<?php 
if (!isset($myTestCookie)) { 
header("location:http://www.mydomain.com/aprilfools/"); 
 exit; 
} 
?>