If you are purchasing an eSIM from a network operator that is different to the network your phone is locked to, then you will need to unlock your phone before using the eSIM.