While I mostly agree with your statement, the cases of Japan and Canada sort of argue against your statement. They haven't specifically contracted out their defense, but they've gotten a mostly free ride from a benevolent protector (us).
And don't forget Europe: the formation of the European welfare state was financially possible because we bore the costs of protecting them from the Soviets.