The short answer is yes, but the long answer is that you might find the wifi locked and need to get an password from the front desk. I think you will find some hotels have free wifi and some don't. The larger foreign owned hotel chains will likely have free wifi in the lobby. Places like Starbucks usually have free wifi if you have a China Mobile SIM Card which you will want to get (if you don't already have). Even with a low cost prepaid China Mobile sim card you can get free wifi so it is worth having. And, the China Mobile (CMC) free wifi is nearly omnipresent - even in some hotel lobbies, and shopping malls.
The China Mobile wifi (usually tagged as Free-CMC or CMC-Free, or something like that) is available in a lot of places. When you see that wifi, connect to it, and a login / registration screen will pop up in your browser. You enter your local China Mobile phone number and a random number on the screen and China Mobile will send you a login password by text message to your phone. That password will work for 7 days and then you can request a new one. So I highly recommend having a CMC sim card even if it is just to get the free wifi.
Regards,
Paul.