It depends on where do you want to travel, and if you want to be able to speak to everybody in Spain and some countries in South America.
As they said, Catalan is a separate language from Spanish. It sounds more or less similar to it, but people not accustomed to hear it can take longer to start understanding it. It's spoken mainly in Cataluña, but also in many other places, both inside and outside Spain. Inside Spain you can hear Catalan in Valencia (really, they speak a variant of Catalan there), some places in Murcia, Baleares and Aragón, and outside Spain it's spoken in Andorra, some regions in Italy and France. Catalan is really more similar to French than to Spanish in its vocabulary, but its pronunciation is nearer to the Spanish one.
On the other side, Spanish is understood in all regions in Spain, in most South American countries, and many many other places, being the second most natively spoken language in the world, so certainly it's worth learning Spanish. Being spoken in so many regions, you can be sure there are many variants of Spanish out there. Spain's Spanish can be a good reference, but South America countries can use a very different vocabulary in many informal situations.
I hope that helps.