Do you remain friends with your ex's friends

Lets say you've been in a relationship with someone for a while, you guys have mutual friends, you met the family and all, you follow their friends on social media and they do too, you become close friends with their friends... Then you break up.  Do you break up with the friend too?