Question [Q] Sony xperia e single sim network lock


I have a carrier locked sony xperia e. I want to unlock it so that I can use any sim card from any carrier on it. Can you please tell me will flashing a custom rom will unlock the phone ? If not then how can it be done ? Thank you