Yes, but they work differently. Due to their decentralised nature there is not one switch they can turn to shut off their services or programmes. US companies can be ordered to stop their services for certain organisations, individuals or states
Regardless of why and how it’s happening, it seems extremely risky at best because all concentration of power and control tends to beget more abusive power and control.
There are other open options for hosting git FOSS projects.