This depends on each country’s election laws. Some countries allow such citizens to vote; others do not. Check with lawyers in the country concerned.