The general rule is to avoid it if possible as you do not want to compremise the bloom.
The bloom is a protective coating that keeps bacteria and germs out of the egg.
The bloom is water soluble so rinsing in water can destroy the bloom.
If you have a dirty egg you can carefully wipe the dirt...