Yes, Yangshuo remains a relatively small town that is pretty well protected and is safe for tourists. Local people are very friendly with foreigners. It’s quite common that young girls walk in the streets even late into the evenings. Many foreign people choose to live for a long time (or even permanently!) in Yangshuo. Like any place in the world, some tourists have their wallet/phone or bike stolen, however in comparison to many tourist destinations or big cities in China, Yangshuo is a much safer town to live. Actually most towns in China are safe enough.