I’m pretty sure if we didn’t have nuclear weapons at all generally, we’d be in a world war right now or a continent wide war at the very least so in that sense so far they have functioned as a deterrent. Whether that’s any consolation for Ukranians is doubtful