Capture photo with 24 megapixels with AVFoundation?

Hello everyone, I couldn't find an answer for this question. It is possible for developers to capture 24 megapixel photos in AVFoundation with an iPhone 15 pro or is it only a iPhone camera app feature?

Capture photo with 24 megapixels with AVFoundation?
 
 
Q