It kind of depends on how you envison that.
With existing intermodal systems, there's already something somewhat resembling electrified long-haul heavy trucking, though largely in Europe. For various reasons, the US has little electrified freight, and doesn't forsee it for the forseable future, though it's clearly technically feasible.
There are several other possibilities for electrified freight, though battery-EV is almost certainly out of the picture. IIRC BMW have experimented with a battery-powered EV tractor-trailer, but it's used exclusively for local delivery at low speeds (~40 kph IIRC) at a range of ~5-10 km. A very limited pilot.
Self-driving cargo vehicles capable of "training" on highways, with catenary or similar feeds, could offer long-haul separable vehicle cargo capacity. I'm not aware of any serious plans for such a system though, and it would require both massive investment in vehicles and roadways.
Present planning at the US EIA is for natural gas fueled cargo -- both truck and rail.