In places where it's not illegal to talk about your salary to your coworkers - just heavily frowned upon, and possibly still illegally sanctioned by your boss - , it certainly is not too far. Just knowing what your peers make, especially your immediate team where you probably have better insights on how much relative value they provide, can give you a good feel for being overpaid or underpaid.
Oh ok, the prisoner's dilemma is about whether you should tell your coworkers your salary.