Answer
Yes.
Work Step by Step
The two teams of horses used in the demonstration were there for dramatic purposes. The net force on the apparatus is zero, with a large force provided by one team of 9 horses pulling toward the right, and another large force provided by a team of 9 horses pulling toward the left.
If one team were replaced by a tree, the force diagram for the apparatus would be identical.