Not directly — the console has no built-in capture feature for this era of hardware.
The workaround is to connect the Xbox to a PC and play through the PC screen, then record with capture software such as HyperCam, available here: https://hypercam.en.softonic.com/.