Correct.
Without American oil imports, Japan was forced to seize Dutch oil production in Indonesia to keep their economy running. That would drag the USA into the war, therefore it was a logical conclusion to strike the USA first.
It's not hard to see Russia's action as a logical action to protect their interests. That however is not the same as condoning Russia's invasion of Ukraine.