This is expected advice from a father, as mine dispensed something similar as well.
But those described are not friends, but merely partners.
To me, friends are those who will be around during bad times as well as good. In other words, they'll be around even when your "worth" is very low.