In many cases, yes. But it depends on how long you stay and follow the country’s rules.