That means you are related . But thre was some problems in the past . where your father had separated from your friends father . But you are still related so go and say to your friend my dear brother...
If the grandfather of A and the grandfather of B are second cousins, then A and B are fourth cousins. Their common ancestor is a great great great grandparent.