Yes, but only via electrical fault. An electric guitar's strings are metal conductors. If the guitar (or amp) develops a ground fault and contacts live mains voltage, the strings become electrified. Touching them completes a circuit through your body—potentially fatal.
Modern UL-listed gear is safe when properly maintained. The risk is real but preventable.