Yes, and the method depends on your platform. On a PC, the easiest route is windowed or borderless mode: start the game, then Alt+Tab to your browser or media player. Borderless windowed mode handles this far more gracefully than exclusive fullscreen, which tends to minimize badly or refuse to switch at all.
On consoles, use the system's suspend or quick-resume feature to hop into a streaming app and then jump back. On phones, picture-in-picture or split-screen multitasking lets a video float above the game. Just be aware that many online games will not pause, so you may come back to an empty health bar.