Yes you are right that she definitely tied the concept of “friendship” and other related concepts referring to valued human relationships to selfishness. A good example is from the “Virtue of Selfishness” where she says “Love, friendship, respect, admiration are the emotional response of one man to the virtues of another, the spiritual ‘payment’ given in exchange for the personal, selfish pleasure which one man derives from the virtues of another man’s character.”