Of course. For that you need a mixer (to combine the sounds from all the sources) or a switch (for example an RCA switch).

-- José.