If you want to rev the engine in Park to warm it up, that’s a perfectly acceptable practice. Just be careful how high the revs go so you don’t cause unnecessary wear to the engine.