Yes, twice, once in the time of Commodore Perry, when they were humiliatingly forced to open to western powers.
Then, after they powered up, and tried to ensure this doesn't happen again, in 1945, with Hiroshima and Nagasaki and their humiliating surrender and occupation. They turned into western culture as a response, and it took them until the 80s to shake some of this off...