Yes! Its called (your) criteria!
Each of us (chooses) our own friends, lovers, and spouse. Each of us is responsible for our own happiness. Only you know what makes you happy and whose company you enjoy.
Having said that a "good friend" is honest with you, trustworthy, loyal, displays generosity or offers to meet you half way without any prodding when it comes to participating in activities, if for some reason you have not called them they will call in to check on you. It's truly a back and forth or give and take relationship.
Nevertheless some people are drawn to people who they feel NEEDS them. They want to play the role of superhero, rescuer, or nurturer because it makes them feel valuable until they start to feel used or taken for granted.
Some people are only interested in associating with people who can help them in some way whether it be financially, career or social connections. Otherwise you are no use to them.
However when it's all said and done you're friends with the people (you) chose to be friends with! It's not so much about (them) being "good" or "bad" friends as much as it is (you) being a "good" or "bad" (selector) of friends!
Ideally with age comes wisdom and experience along with getting to know oneself well enough to (choose) both their friends and lovers wisely. You create your own "shopping list" or criteria for making your selections.