Yes. Contrary to popular belief, it is perfectly fine to wash mushrooms to remove soil and other debris, especially when they are particularly dirty. Rinse mushrooms with running water and dry them with a paper towel. Do it when you need to use them. No need to wash if you’re going to store them in the fridge for later use.