You’re not exactly “adding” the virtual pin, you’re adding a function in your code that will be triggered when the value of the virtual pin changes. The datastreams for those virtual pins still need to be defined in the Blynk 2.0 web dashboard.
There’s more info on virtual pins here…
Pete.