That's the whole root of the discussion here. The answer used to be, yes, Apple could help extract user data from an iPhone and hand it over to authorities (although I think the authorities still needed to take physical possession of the device first). Now they're building it so that Apple can't access your data regardless, because it's encrypted with keys they don't have. This naturally annoys law enforcement.