Yes!
In terms of the ability of a heat gun, melting solder is within its ability. Actually, you can use a soldering gun instead of solder iron, for instance. It’s more effective than a heat gun and easier to apply in limited spaces.