Yes. Catalan is an official language of Catalonia (the autonomous community where Barcelona is located), alongside Spanish (Castilian). It is the native language of the majority of Barcelona's residents and is used extensively in:
While virtually everyone in Barcelona also speaks fluent Spanish, making an effort to use basic Catalan greetings (Bon dia, Gràcies, Adéu) is appreciated and signals respect for local identity.