Yes, it helps cut out the buzz or hum on hi gain pedals/amps when the guitar is not playing. It basically sets a threshold or a volume "floor" and cuts out the entire guitar signal when the volume drops to this threshold. Ther's a knob to control how fast this volume reduction happens so that the decay sounds more natural.
Unless of course the humming and buzzing occurs when the guitar IS being played...