That would prevent you from clicking it again - that's all. If you put the print command AFTER you removed it, it won't print (but not if you print then remove it - no use)
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook