Typically the point of nuclear deterrence is to brag about your capabilities, not keep them secret.
It probably doesn't hurt to have your opponent worry that your capabilities are secretly even more effective than openly stated, though.
What we can hope for is a situation similar to Israel, where they "officially" don't admit to having nuclear arms, but everybody knows they do.
It probably doesn't hurt to have your opponent worry that your capabilities are secretly even more effective than openly stated, though.