Of course you can; you can melt just about anything. Polymer has a lower melting point than steel, so a Glock will melt much sooner than most all-metal handguns. It will still take temperatures upwards of 300 degrees Fahrenheit to melt it, though, which is why the slide and barrel are all metal.