If you buy an iphone direct from apple not from a network will that phone always remain unlocked?

If you buy an iphone direct from apple not from a network will that phone always remain unlocked?

Yes. Generally, no company will go to lock your device. It will be wise to make sure that they do not lock it if and when you get into a Service contract with them. This might save you from a lot of trouble later on.