Of course, but Swiss were not the only country that declared neutrality. Netherlands did that both during World War 1 and 2. And both countries were strategically interesting. Thanks to both geography and effective deterrence Switzerland was able to enforce its neutrality, while Netherlands wasn't.