Yes. iPhone videos are generally in MP4 format. MP4 or MPEG-4 is the most widely used format for digital recording, encoding and compression of video and audio files. It is supported by almost all digital video devices, including iPhones. The advantage of using MP4 on iPhone is that this format can easily be shared on other digital devices.
MP4 files on iPhone are saved with the .M4V extension. This format is based on the QuickTime file format, but is optimized for viewing on the iPhone and other devices. It is widely used for digital video distribution and playback.
Video encoding can be done using an application like iMovie, or on the iPhone by using the Camera or the Photos app. In iMovie the format chosen while encoding can be changed to achieve the desired MP4 format.
In addition to the MP4 format, iPhones also play other video formats like .MOV, .MPV and .AVI. These formats can be converted to MP4 using a third party app or software like Handbrake, which is a free, open source tool for transcoding video from nearly any format to MP4 or MKV format.
Hope this helps.