Yes, it limits the current by dropping the voltage.
The led voltage and the voltage across the resistor must add up to your supply voltage. With a 5V supply and 2.2V led, the resistor must drop 5-2.2 = 2.8V. The resistor will then need to have a value of 2.8/0.7 = 4Ω. The power in the resistor...