According to Apple you can, but I don't have a non Apple phone with esim to test this with. I have transferred esims between iPhones with no issues for the past few years reliably however. This can be done prior to travel, however you would be at the mercy of the support service of the carrier if there is a problem and it doesn't work as planned.