On the contrary, they even have a page explaining how to prepare the device for ownership transfer: https://support.apple.com/en-us/HT201065