Usually the choice of friends depends much on compatiability, what concerns their social background, their educational standard as well as their financial ability.
So in most cases they will have similar pockets,in other cases some people's friendships are built on much deeper levels of connection,which is rare.In those cases, financial disparity won't stop their friendship from flourishing.
However in most cases it could be a reason for them not to start a friendship from the very beginning.