The transistor you link to handles 200ma... so if you had a string of leds 4 of them, that's 80ma within limits of 200ma so that's fine to use...
Transistors can be used as switches when saturated / fully switched on, they can have many other uses too!