Does distance really matter?

Do you guys think that distance really matter if you're a good friend to someone and really care about them?