Is there a good primer (spray can) to stop cast iron engine parts from rusting?

I use this stuff(not on engine) not sure how it stands up to engine heat?

20210712_173714.jpg