If I'm voting republican in a state such as California, does it even matter?

I decided not to vote since CA is overwhelmingly blue and I thought my vote would be pointless