IT depends on what need to be replaced and what your idea of expensive is. On a truck like your if the entire system needs replaced your looking at thousands of dollars.
If doing a complete change of brakes it can cost 400+ dollars. If you can isolate the parts that are bad and replace just them it would be more cost effective.
The repairing process of ABS brakes on an F-250 could be expensive. In the repairing process the needed brake scan tools required for finding the fault would be expensive. The diagnosis procedure also expensive in nature.