As long as the hub communicates with each, it doesn’t matter what protocol they use.
You use the SmartThings app to create an “automation” (ST’s word for rule) so that when Device A sends a specific message to the hub, the hub sends a specific message to Device B.
You can use either the built in SmartLights or SmartThings Home Monitor feature for the use case you described. Or create your own automation.
The automation doesn’t care what protocol the first device used. As long as the hub understood it, that event can be used to have the hub send a message to the second device using whatever protocol that device requires.
(Again, assuming both devices can already communicate with SmartThings. The hub is not a “universal translator” for any possible home automation protocol. But it does work with zwave, some zigbee profiles, and some WiFi devices.)