2 Radios plugged into 1 Speaker?

so Bobby, would it work if it were similar to an A - B switch like used on computers?