Can I use blynk turn on/off LED same time to arduino code?

I use ESP32 turn off LED with this code.

digitalWrite(18, LOW);

I try to use blynk button turn on at gp18 it not work. Can I check if blynk button turn on then set

digitalWrite(18, HIGH);

Pete.