Pip doesn't deserve his friends. There. We said it. Joe, Biddy, and Herbert—not to mention Magwitch—all show Pip loyalty that he not only doesn't deserve, but that he seems to actively not deserve. He patronizes, rejects, and disowns his friends, and yet they still keep coming back for more. Why? Do they see and sympathize with the scared little boy that Pip used to be, or does he have awesome character traits that we don't see? Either way, Great Expectations suggests that, even if you don't get the love of your life, friends are a pretty good substitute.
In Great Expectations, friendship is a more powerful emotion than love.
Dickens suggests that true friends can see the good inside of you even when you're acting like a butthead.