It could if it was working intermittently.
It is easy to test
First, test that the red wire reading is 12
volts. Test the black wire for continuity.
Using the proper equipment, raise the rear
tire, and check voltage at the green signal
wire while spinning the tire. The reading
should be between 0 and 6 volts. If no
voltage registers, replace the speed sensor.