No, Tárrega did not write any operas. He was a classical guitarist and composer, and his compositions were mostly for the guitar. He was a very influential figure in the development of classical guitar music, and his compositions are still widely played today.
Fascinating Tárrega: Test Your Knowledge on the Maestro of Classical Guitar