Basic led with NodeMCU

Hi

Is it possible to use basic led with nodemcu and esphome? if yes, how should i connect/wire it?

Thanks
image

use this code example:

wire from a 3.3v pin via a resistor, to the LED, to the GPIO pin that you program as per above

worked perfectly, thanks!