It is optional but totally recommended. Pan frying gives the gnocchi a nice crisp outside, sealing in the pillowy center.