Yes, you just need to use property nodes.
Right click the LED then go: Create -> property node -> visible.
Then change the property node to write.
Then wire the same thing that is wired to the LED to the property node.
That way the LED will not be visible when the input is false.