Well, yes the clocks do increase in a game, the graphics processor has to render the scenes, movement, etc...
And there are some games where the clocks remain high in the game menu, or in some where vsync is turned off.
Normally the higher the graphics settings, the harder a card has to work.
My PC- Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3600c16dgtzn kit, NM790 2TB, Nitro+RX6900XT, RM850, Win.10 Pro., LC27G55T.