Yes, but those nuclear weapons are only a deterrent against other nation states. They aren't effective against Palestinian terrorist organizations, so they don't factor into the question of whether Israel should be willing to accept some significant ongoing risk of terrorist attacks.