Yes, it is important that you regularly wash your dog harness. Most of these products can be hand washed and air-dried. Keep in mind, any dirt or small rocks that get lodged into the harness can become very irritable so keep up with cleaning and checking for debris regularly.
Dog harnesses with LED lights should make sure they are fully waterproof or remove the battery if indicated by the manufacturer.