Legal requirements in a handful of countries make it really hard to hire, but the vast majority of the world is usually fair game.
I'm not sure what the industry standard is wrt adjusting salary based on location, but considering the cost of housing in the Bay area or NYC, it seems fair to pay the folks who live there more than, for example, me who lives in the boonies of Florida.