I will get an iphone 7 locked by icloud, but I have the password of it, does the phone get locked even when i open it?

And is it possible to get locked again?

ICloud Lock only happens when the owner of the iCloud account locks it, if you have the password to unlock it then simply remove their account and log into your account, that way on you have the ability to iCloud Lock the device as it's your account that is associated with that iPhone