It certainly is, I explained how to do it just yesterday:
It’s something I’d never had cause to try until this question was asked, so I tried it with the cloud server to toggle the built-in LED on a NodeMCU.
Having said that, it’s not an approach I’d chose to use.
I prefer to use code on the NodeMCU to monitor the change to the virtual pin then toggle the state of the digital pin using a digitalWrite statement.