Iphone 6s plus questin?

My friend has an iphone 6s plus.

last year the whole screen cracked.

friend didn't fix phone,

got a new phone through att, and att decided to lock the old phone to prevent resale…

my friend said if i fix the screen its mine…

can i unlock the phone after i fix it to be used by my prepaid sim card thru att?

Uhh