You can add an Electric Guitar track to play and record an electric guitar in GarageBand. In an Electric Guitar track, you can choose guitar amps and guitar presets for highly realistic guitar tone, and add stompbox effects to customize your sound.
An Electric Guitar track is a special type of Real Instrument track. Recordings you make in an Electric Guitar track appear as purple Real Instrument regions. You can arrange them in the timeline, and edit them in the editor, the same as other Real Instrument regions.