Wifi has nothing to do with the SIM. Wifi is the same all over the world. It'll work.
Your phone won't, though. You won't be able to make phone calls, send or receive texts, etc. But if you use internet apps you won't have any problem wherever there's an open wifi signal (or a secure one and you know the password).