Yes, guitar cables can affect the sound quality of an electric guitar. Poor-quality cables can produce unwanted noise and interference, while high-quality cables can provide a clear and balanced sound. The cable's length and thickness can also affect the tone and signal strength.