Not necessarily. If the pot fractures due to root expansion, or if a tap root can escape through a drainage hole in the pot base, then it might grow more than you want it to.if I plant it into the ground with pot will it stop it getting any bigger?
As a rule of thumb i like to prune fruit trees in early spring - late Feb/March - to encourage new growth. So long as the weather isn't wet or too frosty, it works out okay. I don't think the tree in the pot looks to be a fruit bearer though, so maybe a little off the top this autumn wouldn't hurt. That way it can spend the winter delving new roots into the ground, rather than staying cooped up in that pot.Plant it, and prune it if it gets too big.
Cherries can be fussy on what time of year to prune them - I can't remember the details, check the RHS website.
BUT, something to bear in mind is that cherries can send out very long lateral roots, which can dry the soil, lift the lawn - just keep an eye and chop them off if you need to.