Yes. You can even roast them in the pan, but it needs your time and presence around the stove as you will have to roast them in batches. Whereas in the oven, it is a lot easier. Spread the eggplant slices on one or several baking sheets, put them to bake, and then, after a few minutes, flip the slices and continue to bake until done. No mess at all.