Yes, you can certainly do that. And if in place of the built-in virtual switch driver, you use a "virtual contact with switch driver", like this one, then you can use it as a switch in IFTTT and a contact sensor for the MyQ app in Hubitat.
As IFTTT toggles the switch (based on information from the IFTTT MyQ integration), the contact sensor would present as "open" or "closed" in Hubitat.