You can group together into factions, as well as form squads that are not affected by factions. Factions can even form alliances with each other.