yep, just remember that a small transistor like the 2N2222 will only drive up to an ampere's worth of LED's before the transistor dies a silent death. For a high-current load like those LED 'sticks', you may need something like a TIP102, wich will drive a whopping 8 amps (with a heatsink, of course).
D