I always wash the corn on the cob before cooking because washing removes the stringy silk from the corns kernels.
But if you don't want to wash the corn on the cob before cooking then you don't have too.
You can cook the corn on the cob with the husk still on it in the microwave and then after cooking in the microwave you can remove the husks and silk before eating or serving the corn on the cob.