12v PWM LED control

Sure. Default switching speed is only 490 Hz, 2n2222 can handle that just fine.
Just keep an eye on the total current thru the parts so you don't smoke anything.
From arduino thru NPN base, thru the NPN C-E, and thru the LED(s).