While it is doable, it is a lot of work. Apple has serialized a lot of the components in the iPhone such as the battery and display assembly, which will pop up with a message that says, “Apple was not able to verify if this is a genuine screen/battery.” Also you’ll have to have the corresponding FaceID components for the board such as ear speaker and front camera assembly. For the amount of work it’s gonna be, sell that phone for parts and buy one that doesn’t have a lock on it.