Yes, most of the best ultrawide monitors offer features that allow you to divide the screen so you can connect two sources (like two computers, or a computer and tablet) to the same display. This feature is called picture-in-picture, or PBP, and can usually be turned on in the display settings.
A monitor that has PBP mode activated will display the screen from two inputs at the same time, side-by-side. you will be able to select the input you want to see and swap them left to right. A KVM (keyboard, video and mouse) switch will allow you to use one keyboard and mouse to control both devices, saving clutter on your desk. There is also software such as DisplayFusion that can help you set up and manage the inputs on an ultrawide screen.