Yes, you can use a grill pan as an alternative to an outdoor grill. Preheat the grill pan over medium-high heat and follow the same instructions for grilling the zucchini and corn.