Yes, Vatican city is an independent country in western Europe which is completely surrounded by Rome in Italy, so, yet, it's considered the smallest country in the world, and in fact identifying it as a city state because of its small size.
Vatican city is considered a country as it satisfies all the requirements to be a country, such as: having international recognized borders, definite and permanent population, and also having relationships with the other countries.