The resistor limits current through the circuit I wouldn't recommend skipping it, but definitely don't take my word for it..
https://learn.adafruit.com/all-about-leds/forward-voltage-and-kvl
Cheers
https://learn.adafruit.com/all-about-leds/forward-voltage-and-kvl
Cheers