Will my phone still be unlocked after I install CyanogenMod? I've recently unlocked my phone so that it can work with any SIM card, and I want to install CyanogenMod.

What I'm wondering is, since CyanogenMod is going to wipe most of the data on the phone, is the lock status going to be changed too? i.e. will I end up with a locked phone again?

Edit: My phone is HTC One M8, previous locked to EE. I got the unlock code from EE.
No!

CyanogenMod will wipe the DATA partition, all the CACHE partition and the SYSTEM partition while installing. It will not affect anything about lock/unlock of sim card.