Yes you can, however there's a good chance it may also carry over the iCloud Activation Lock status and refuse to work for that reason (all Apple Store machines are Activation Locked to deter theft & assist with recovery).
This might get you in trouble though, less about the theoretical element of fraud and more that they’ll legitimately believe the device has been stolen.
This might get you in trouble though, less about the theoretical element of fraud and more that they’ll legitimately believe the device has been stolen.