Yes, you can recover data from a locked iOS device. You can use Recover from iTunes or Recover from iCloud module in the software.