Arguable. While Japanese people continued referring to Westerners as nanban (literally, southern barbarians) until the Meiji era, the Japanese imported a significant amount of knowledge from the Dutch during this time, when all other Westerners were forbidden from entering Japan. This was called "Rangaku," or Dutch learning (taken from the "ran" in "Oranda," which was a rather crude pronunciation of "Holland"). Many of these Dutch ideas became well known in Japanese society, and the Dutch were required to give the Shogun and his court annual updates as to the state of the world. So while they may have inherently thought of themselves as "better" than the foreigners, they were perfectly willing to learn from them.
Source: de Bary, Sources of Japanese Tradition