Yes, a key part of No more Mr. Nice Guy is that "Nice Guys" operate on "Covert Contracts." They do things for other people with the (unstated/secret) expectation of something specific in return, especially, e.g. being nice or giving gifts and compliments to women, and expecting romantic interest, friendship, loyalty, etc. in return- and they get upset and act out when they don't get what they expected, which isn't really "nice" at all.
This is contrasted with clearly setting, communicating, and enforcing boundaries: e.g. I choose to only have relationships with other people that treat me with dignity and mutual respect. I will let people know if they are violating my boundaries, and if necessary, I will move on from the relationship.
I do take issue with your idea to "put others' interests ahead of their own." Often, that is actually part of the problem these "nice guys" have- they are afraid to put their own interests first, which leads them them silently tolerate abuse, etc. and just constantly seethe with resentment. We are each responsible for our own needs and interests, and it is childish to put others first at the expense of yourself, and then silently expect other people to somehow take care of your interests for you. Good leadership, for example involves a type of enlightened self interest: e.g. I am mentoring young people because it brings me joy to see them succeed, I can relate to them, and it makes the world I also live in better. This is because it's good for me, I would not mentor young people if I hated it and it made me miserable, just because I think they need it, and I am putting their needs first, nor would I do it for some covert/unstated reward or repayment. Life isn't a zero sum game- your own best interests will very often align with those of others.