Yes but long haul trucking involves distances much farther then the range of any normal electric car.
Good point about substituting the weight of the engine for batteries. Still I think you're going to be way short in total energy density.
And it's not like you can just pack the trailer with batteries either, you still need to allow for the weight of the cargo and there is a gross weight limit on 18-wheelers.