Answer
Yes.
Work Step by Step
The process is isothermal. This means that the internal energy of the gas doesn’t change.
We use the first law of thermodynamics, with no change of internal energy.
$$\Delta U = Q-W=0$$
The heat added to the gas equals the work done by the gas. 3700 J of heat was added to the gas.