It depends. You need to have the iCloud/Google account, password, and verification code of the target device. If the same iCloud/Google account has been signed in on other devices before, you can use those devices to complete the verification steps. Access to the target phone is not always necessary.