Yup. That's a feature of XScreenSaver. Run xscreensaver-demo
, which is the user controls. You can run it from the terminal or command line of the system menu. If you've installed XScreenSaver, that is already on your system.
You have the option of random screensavers that change with a frequency you set, or a single screensaver that you select. From that dashboard, you can also fine-tune the action of each screensaver, test each screensaver to see it in action, control whether to lock the screen, and make other adjustments.
BTW, if you have XScreenSaver, download and add RSS-GLX; it should be in the Ubuntu repository. It's a collection of mind-blowing screensavers; the best thing since sliced bread. Its installer doesn't always work. You may need to follow their instructions to edit the XScreenSaver configuration file to manually add them. If you have trouble finding the instructions, ping me and I'll post how to do it.