Yes, it will work even if your phone is roaming.
From your iPhone
Make sure your iPhone XS, iPhone XS Max or iPhone XR is updated to iOS 12.1 and above
From your Samsung
In case you shared the QR code with an untrusted account by mistake – before you activated the QR code on your phone – please call 101 or visit any e& store to deactivate it to stop someone else from scanning the code.
If you lose your QR code, you need to apply for eSIM replacement through e& UAE app or by visiting our nearest e& outlet.
If you lose your QR code before scanning it, please call 101 or visit any e& outlet to deactivate it to stop someone else from scanning the code.