No, definitely not.
Japan really wasn't a unified national entity until the 1600s; before that, aside from a few brief eras of relative peace, it was mostly a set of fiefdoms ruled by individual warlords. In that era, relations with foreign powers were all over the map, but mostly not great (aided by Japan's relative isolation thanks to being separated from other countries by the Sea of Japan and the Pacific Ocean).
Japan's first real, sustained contact with the west was via Portugal, and they were one of the few western countries with which Japan had mostly positive relations. The Portuguese were allowed to trade within Japan (with Japan's first blackpowder weapons coming via Portugal in the 1500s), but they also brought with them Christian missionaries (chiefly Catholic Jesuits), which Japan really didn't know what to do with at first. Christianity started to spread across Japan, which caused friction with Shinto and Buddhist religious groups that sometimes involved violence, until Toyotomi Hideyoshi ultimately made the decision to ban missionaries from the country, believing that they were attempting to bring Japan under the influence of a foreign power (specifically, the church - he was not completely incorrect in this assertion). Missionaries were expelled from the country, if not outright killed, and Japanese converts were forced to renounce their faith or risk torture and death. Small Christian communities hid themselves as far away from Edo as they could, in western Kyushu or northern Tohoku, and in some cases persevered for centuries, but Christianity largely died out in Japan in the early 17th century.
This policy was largely kept in place by Toyotomi's successor, Tokugawa Ieyasu, the first shogun of the Tokugawa shogunate and arguably the first "true" ruler of a unified Japan as we would understand it today. Tokugawa was quite reactionary and several of his policies reflected this; under his rule, women's rights were rolled back (feudal Japan was actually remarkably egalitarian, as far as women's rights were concerned), laws were tightened around various forms of "indecency", and, most notably, Japan's borders started to close. Eventually, a few decades later, under Ieyasu's grandson, Tokugawa Iemitsu, Japan implemented the policy of "Sankoku" ("Locked Country"). Largely, this meant that no foreigners were allowed in Japan and no Japanese were permitted to leave. A few exceptions were made for trade at specific ports (mostly Nagasaki) for particularly favoured countries, but it was almost impossible to be a foreigner in Japan in this era.
That ended in 1853 when the US, then in full Manifest Destiny mode, sent Commodore Perry and a fleet of gunboats to Japan with orders to secure a trading agreement with Japan, by force if need be. Perry's visit could not have come at a worse time for the shogunate, as the ruling shogun - Tokugawa Ieyoshi - was in poor health and facing political dissatisfaction. Perry forced his way into Edo harbour and issued his demands, before departing for other parts of East Asia (he eventually visited Taiwan, which he recommended the US seize and declare sovereignty over, to use as a base for their East Asian interests); Ieyoshi died shortly thereafter and his death is generally seen as the beginning of the end for the shogunate; within a couple of decades, the Emperor (who had largely been a figurehead since the shogunate was established) had his power restored and disbanded both the shogunate and the samurai as a ruling caste. The Americans, in line with Perry's demands, negotiated at gunpoint a trade agreement that forced open Japan's borders and thus birthed the era of Imperial Japan.
The subsequent era really wasn't a great time to be a foreigner either, as most were viewed as invaders who defied local customs. Before the samurai were abolished, some were killed for failing to show proper respect to passing samurai, which did cause the occasional diplomatic spat. That takes us into the 1900s and the modern era, so you probably know the history from there.
Kill 1 man: You are a murderer. Kill 10 men: You are a monster.
Kill 100 men: You are a hero. Kill 10,000 men, you are a conqueror!