Unfortunately, many of the ideals in each faction are in conflict with other factions, so if you're looking to make The Commonwealth a place where everyone can be happy, you're out of luck. They can instill a sense of comradeship and purpose.
Joining factions in Fallout 4 is like joining clubs or fraternities in college.