Do you use Primer on your engine before you paint it?

Should I use a High heat primer on the block first or does that not matter for the engine.

Also if you do use a primer, should you then use primer on the headers first as well??

Thanks!