Not if you buy it through a carrier, as they will have locked it to only accept their SIMs. If you have already done so, try asking the carrier to provide the unlock code.
If you buy an offline, unconnected GSM handset you should be OK. Best to check before handing over money, to be sure.