Yes, headphones can be used to play electric guitar. By connecting the guitar to an audio interface or a multi-effects processor equipped with a headphone output, musicians can play through their headphones without disturbing others around them. Playing the guitar through headphones can also help to isolate the guitar's sound, allowing for more focused practice and better control over the individual tones and effects.