That would be a good place to start as William suggested however, if this ABS issue occurs during brake applications i would say that there might be something else causing this. My suggestion is to have it scanned for DTC's from a local parts store to get an idea where to start troubleshooting. The ABS system is electronically monitored, electronically pulsed but hydraulically actuated. The ABS consist of an HCU and a ABS module. The module controls and monitors the base brake system at all times with speed sensor inputs and pressure sensors within the HCU(hydraulic control unit). The HCU houses a pump motor and a series of valves thats separated into 3-4 circuits for each wheel thats called a dump valve. If any of these electronically actuated valves malfunctions, a dtc will set and likewise on the ABS module and speed sensors. Check the wirings as well, it might be that simple.