No, flashing your phone will not automatically unlock it unless you do it yourself. Therefore, there is nothing for you to be concerned about.