Yep. They were really trying to join the western world at that time. You probably already knew this, that the guy that designed the Mitsubishi A6M (zero) was educated in the US.
Yamamoto spent time in the US, went to Harvard and travelled around the country, that’s why he knew getting into a war with the US was a bad idea.