Depending on what you do in PostgreSQL you might as well use v14 if you do not do anything that is new. I guess not much have changed in features between 12 and 14, but I would update it in local host and do tests before updating to the server.
But sure way is check changelog from 12 to 14 on PGS and see if there is anything that changes that might affect your code and deal with that