Not simultaneously, no. It just switches to the last device that output sound. So if you had two things playing music, it will either not switch or constantly switch between the two sources.
I don’t even know if there’s a good way to get 2 or more sources to play simultaneously through the same speakers. I can certainly go the other way and split 1 source into 2 systems, but I don’t know if you can just reverse a splitter to have output from 2 sources into a single input. 🤔