It varies country by country.
You can fly an Irish registered aircraft anywhere on a ICAO licence.
Regarding your question, if you can't legally fly the aircraft, then you can't log it as pilot in command. But if you receive training, then I don't see what you couldn't log it as a training flight, because you don't need any licence to receive training.
dp