Usually, yes. Sweating the eggplant by salting it removes extra moisture from the eggplant. Pretty much no matter how you are cooking the eggplant, this is a beneficial step. That said, if you are ever roasting a whole or halved eggplant, you don’t need to salt it first.