Yes they ban foreign companies. All companies need a Chinese partnership to enter China.
Eg. Azure needs to let someone else handle the infrastructure there. The only exclusion i know of ( i think) is Tesla, because China is very interested in it's tech and for it's goal of EV dominance.