It is best to contact your surgeon for post surgery issues and care since all doctors have slightly different instructions.
For the first week or two after surgery this question is best left to your surgeon. After that it shouldn't matter.
After a hair transplant you should want to keep all of the crusting away and a good wet shampoo is critical for that