Does tapping on a soda can really stop it from exploding?

Many people tap their soda cans to prevent them from fizzing over, but does this technique actually work?