Can work be done on a gaseous system when temperature and pressure are changed without changing it's volume?

In chemistry the formula of work is always $p\,\mathrm dV,$ whereas we can also do work on on a gas by changing its pressure without changing the volume. Work can also be done by changing the number of moles and changing the pressure. Is the above hypothesis correct?