Actually no
If you play with wires you get electrocuted because the voltage difference between the two wires or a wire and the ground
If you rub your feet on a carpet then you create static electricity, removing electrons from the carpet and picking them up or vice versa, then when touching another object that has a different positive to negative charge ratio than you (so basically anything that can conduct electricity), then those extra electrons travel from you or to the object, balancing the charges between the two, and both 'get zapped'.