Transistor Controlled 6x6 LED Matrix

So is the Arduino protected from the 5V supply?
If i upped it to 25V in another application would I risk causing damage?