No, this is not supported. Power Apps requires that the types of the arguments to most of its functions to be compatible. In the case of Patch, it checks that the column ID (like your example) exists in the collection that you are trying to Patch. This cannot be done from a variable that is set when running the app - it may be set to a collection that doesn't have such column, or even to the name of a collection that doesn't exist.
If you know which collections you will want You can use something like the expression below:
Switch(var,
"employee", Patch(employee, <record>, { ID: test }),
"manager", Patch(manager, <record>, { ID: test }),
...
)
Hope this helps!