Yes. Most eSIM phones can store several eSIMs and use one or two at a time. The exact number depends on your phone.
So you can install eSIMs for different countries ahead of time, and switch between them in your settings. Your own SIM stays in, so you keep your number.