Yes, the iPhone 11 has the ability to screen record. If you don’t see the record button on your home screen you can enable it.
Go to settings > control center > customize controls > and scroll down to add screen recording. You can then access it via your main screen. (You can also pull up on the bottom of your screen to access the control center.)