In the event of a derailment, electronic brakes can prevent car pile ups like this one by automatically stopping the individual cars behind the car that derails. Brakes are not the root cause of this derailment, but they could have prevented it from becoming a catastrophe. Would it have changed the outcome here? I don't know, but most major train derailments are preventable with better maintenance / more modern safety features.