Both methods are valuable. Sand a deck to smooth out roughness before staining or sealing or power wash a deck to remove dirt, grime, and mold.