Power connections to UNO Vin pin

Two alternating LEDs with 560ohm resistors. I think this should be OK.
I just wasn't sure what exactly the Vin pin was for, its just an alternative to the so-called "barrel" connector - right?
Geoff