Yes. It is the official language.
There is not one official language spoken by the world.
The official language spoken in England is English.
The official language spoken in Panama is Spanish.
The official language spoken in the Netherlands is Dutch.
The official language spoken in Montserrat is English.
The official language spoken in Bratislava, Slovakia is Slovak.
The official language spoken in Romania is Romanian.
The official language spoken in Georgia is Georgian.
The official language spoken in Norway is Norwegian.
People in Madrid speak Spanish because Spanish is the official language of Spain. Spanish originated in the region that is now Spain, and it has become the predominant language spoken throughout the country.
The de facto official language spoken on Christmas Island is English.