You can use a Spanish guitar to learn songs that are taught with an electric guitar, but you should be aware of some differences and challenges. A Spanish guitar is the same as a classical guitar, which has nylon strings and a wider neck than an electric guitar. This means that the sound, feel, and playability of the Spanish guitar will be different from the electric guitar.
edited