Summary
No. In general, it isn't true that the work done by the surrounding on the system is equal to the work done by the system on the surrounding.
Clarifications
In the following answer, I will only be talking about closed systems, which are most commonly encountered in an introductory thermodynamics course. In closed systems, the surroundings and the system are not in contact and are separated by an interface, thus it is meaningless to talk about the work done by the surronding on the system or vice versa. However, we can talk about the work done by the gas on the interface, and the work done by the surroundings on the interface, which are often shortened to the work done by gas and the work done by surroundings. In this answer, I will be talking about the simplest interface possible, a piston.
Explanation
For the sake of simplicity, we will be considering our system as a rigid cylinder (having conducting walls) with a piston, containing a gas. Everything outsid the cylinder shall be considered as the surroundings. The following image gives a visual idea of our system:
Image source
Now, we will consider the following four different cases:
Reversible process with a massless piston
In this case, since the piston is massless, thus the net force on the piston must be zero (otherwise, the piston's acceleration would be undefined. To see this, apply $\mathbf F_{\rm net}=m\mathbf a$, where $m=0$). For the net force to be zero, the force on the piston by the surroundings, must be equal and opposite to the force on it by the gas. Thus yielding
$$\mathbf F_{\rm surrounding}=-\mathbf F_{\rm system}\Rightarrow F_{\rm surrounding}=F_{\rm system}$$
And since the displacements are the same in both cases, thus we can conclude that
the magnitude of the work done is also the same, however the sign must be the opposite, since the forces are in opposite direction. This is the most basic and common case one encounters, however, this isn't the only case.
Reversible process with a heavy piston
Heavy is used to signify that the piston isn't massless.
In this case, since the piston is heavy, there can be a non zero net force acting on the piston. Also, since the process is assumed to be reversible, it is necessary that the process must be carried out quasi-statically (in fact, quasi-static-ness is a characteristic of reversible processes). In other words, the process should be carried out in such a way, that the system is in equilibrium with the surroundings at every. This equilibrium implies that the surrounding and the system must have the same temperature at any moment, and the piston should move infinitesimally slowly, i.e. the acceleration of the piston must be zero. So balancing the forces on the piston, we get
$$\mathbf F_{\rm system}+\mathbf F_{\rm surrounding}+m\mathbf g=0\Rightarrow \mathbf F_{\rm system}\neq \mathbf F_{surroundings}\Rightarrow F_{\rm surrounding}\neq F_{\rm system}$$
Thus, in this case, the force on the piston by the surronding, and by the system are not equal. However, the displacements corresponding to both the forces are equal (in fact this would be the case for all the four scenarios). This clearlyimplies that the work done by the system on the piston, is not equal to the work done by the surroundings on the piston. But as clarified above, the work done on the piston is essentially the work done by that entity. So, in this case, the work done by the system is not equal to the work done by the surroundings.
Irreversible process with a massless piston
This case yields similar conclusions to the first case. It's easy to see why. In our first case, we never really used the characteristic that the process needs to be reversible. All the arguments made in the first case hold even if the process is irreversible. Thus we can also safely conclude here, that the work done by the gas and the surroundings is equal in magnitude, but opposite in signs.
Irreversible process with a heavy piston
Now, we cannot just extend the arguments in the second case for this case, since the arguments in the second case, do make use of the reversibility of the process. In this case, there is no constraint of the process being quasi-static, and neither is there any constraint for the net force on the piston to be zero. This allows uds to conclude that in the general case,
$$F_{\rm surrounding}\neq F_{\rm system}$$
But no matter what, the displacements will always be the same (like I said before). Thus, in general, the work done by the gas will not be equal to the work done by the piston.
Conclusion
The above analysis was not a general analysis (and, in fact, it isn't even possibke to do a general analysis in a single answer). However, the above analysis does a good job in showing that the conclusion $W_{\rm surrounding}=W_{\rm system}$ is, in general, wrong. In my opinion, it's not beneficial to draw out any general conclusion about the work done by the system and the surroundings. It's always better, fool-proof and more appropriate to physically determine the work done by both the agents, whenever needed, instead of generalizing a rule which is bound to fail.