Can Localities returns city names on a postcode input?

Absolutely. There is a field named postal_town in the predictions on postcodes returned by Localities which indicates the most populated city or post office city associated to a postcode.
Note that this very feature of Localities API is available worldwide but in the United Kingdom and Ireland.