Yes. AVFoundation provides both a turn-key camera UI view and direct control to the camera and microphone.
Correction: Not in the background, but it could do it silently while the app is in the foreground.
Correction: Not in the background, but it could do it silently while the app is in the foreground.
I can only assume that up until P developers could record both sound and video in the background. That's some scary shit.
[edit] Why isn't there a system level visual indication or audit trail of any camera or mic access? Surely this would be trivial to implement, you could even disable it if you just didn't give a toot about privacy at all.