Well, Afghanistan defended itself for a bit. As did Vietnam, as clear examples. Neither possess nuclear weapons.
Today countries as various as Brazil and Australia are independent, sovereign nations. Even Ukraine which was invaded by nuclear-armed Russia is still sovereign and fighting. Iran for that matter still has its sovereignty, they just lost some military assets.