So choose your friends wisely. Limit time around those who are a bad influence to you unless you can bring them into a circle of people who have good standards.
Birds of a feather. Guilt by association. Like attracts like.
When it comes to "Friends", being married w/ kids, who has the time? My friends, outside of my wife, are my brothers and other family members.
My wife has taken trips with her sisters and my sisters. I have no problem with that every so often. I do the same with my brothers.