Not true. My friends and I discuss this often. There are some people you don't want to tell, those that obviously will get jealous or tell the world. But friends? Friends are friends for a reason!
Though, using someone else's salary point as a reason for your salary is not really a smooth move. No two people are the same, and just because you make more or your friend makes more, doesn't mean one is better than the other.