Speedometer Question

Speedometer starting going wacky, needle jumps all over the place. Would this most likely be the transmission gear?
Thanks