Yes, it applies only to pumping gas, and there are actually some dim-witted folks who fear that cops are going to jump out from behind a tree if one pumps his own gas.
In reality, while that regulation has been on the books since (I think…) the early '50s, nobody has ever been arrested or even detained for pumping his own gas in NJ. In fact, most times the attendant thanks me for doing it.