Yes. When it comes to your personal safety, China is one of the safest countries in the world to visit or live in. Gun crime is practically unheard of, and so to is sexual assault. However, no country is perfect, and civil liberties are different in China. Just follow the local laws and you should be fine.