For PowerPoint users:
Just select on File, then Export and select Create a Video. Once you are there, select from the drop-down box the video quality you want, click Create Video. In the file name box, enter the name you want to give to your video presentation, choose the folder you want to save it in, and then click Save.
For Google Slides users:
Well, yeap, but not directly from Google Slides. Here you’ll have to use some third-party add-on for Chrome or use a screen recorder on your computer, like the Game Bar that is included on Windows 10.