simple newbie question LED

Hi all,
it's the same to connect a leg of a led to GND than connect to a digital pin marked as input and with digitalwrite(LOW)?

in other words, how can I simulate a GND using digital pins?
thanks.

When you set the digital pin LOW it should sink the current to ground. A single LED should be 'OK'

If you are going to sink multiple LEDs than you should use an isolation circuit such as some transistors.

Sourcing and sinking LEDs is the same, it is subject to the same current limits.
You also need a resistor as well as LED.