It’s not necessary to boil the gnocchi before pan frying. However, by boiling them first, you will guarantee that they are fully cooked throughout.