If your phone is unlocked and eSIM-capable, you can use it with any carrier that also supports eSIM. The brand of the phone doesn’t matter—only whether it supports eSIM.
If your phone is locked to a carrier, you’ll need to have it unlocked before switching. The lock is tied to the carrier, not the network, so it doesn’t matter if your current carrier uses the Verizon network or not.