I mean, kind of?
Not in a morally absolving the attacker way.
But in a you had agency and chose to underinvest in defense way.
That said, it's pretty unlikely the rest of the world could have defended against a technologically advanced Europe / Middle East / China, at their respective peaks, and especially after transoceanic sail enabled cross-sea logistics.