Does the bootloader need to be unlocked to flash my phone
A locked bootloader means that you won't be able to install software updates(or flash recoveries, ROMs) that hasn't been signed by the manufacturer/carrier.

So the answer is "Yes, you can flash an unsigned ROM but it won't get loaded by the locked bootloader".