It is recommended to wash in dish soap before trying to paint, to ensure that any mould release is removed before painting.
If you use thick pigment paints or a good primer, it doesn't matter too much. But paint without primer you'll want to wash it first.