Will flashing a custom rom relock me with sim carrier? I got an S5 SM-G900P running stock android 6.0.1 as it comes it's a CDMA phone but I go it unlocked at a phone repair shop to use GSM and has been working fine but it only goes up to 3G.

The question knowing all that is: If i flash a custom Rom (lineage-14.1-20171004-nightly-kltespr-signed) will my unlocked phone will stop working with the SIM? or the unlock will remain after the instalation?

P.d: don't know if it's relevant but I'm outside the US
Welp i made it in 2 sprint S5 and worked. They were unlocked and i flashed LineageOs but keep in mind of you wanna do this flash the appropriate rom in this case i flashed the LTE version instead of the sprint version and it kept the unlock.