Posso escrever código PHP no arquivo html

<div>
  <?php echo "This is printed by PHP"; ?>
</div>

<div> 
	<?php $sum = 5+2; echo $sum; ?>
 </div>
PanosG