can i build a iphone 5s from replacment part and use it?

i would like to know if i buy all the parts to a iphone 5s ,unlock and get a sim card would i able to use it?