Elbow/Arm not straight, is this a problem?

A couple months ago I noticed my right arm cant go completely straight at a 180 degree angle, instead the straightest I can make it is about 150 degrees.
I dont know if this is a problem and if it is has it been caused by my pitching? Also could this effect my pitching velocity?