Will my phone still be unlocked after I install CyanogenMod?
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.