Yes! If an iPhone was officially unlocked by Apple or by a phone service carrier, Apple will still recognize it and the phone can be updated. If an iPhone was not officially unlocked, it's considered "jailbroken" and can't be safely updated.