Is the use of a soldering gun on printed circuit boards recommended?

In general no because its easy to overheat the board and lift pads or even entire traces.

However where the board has large areas of copper soldered to metal chassis lugs, if you need to unsolder such connections the only tool likely to be able to apply enough heat is a soldering gun.