yeah, you can, but it's not the same as doing it over charcoal
btw, this recipe is a pain in the ass to make. That's why most of the time when you see rellenos on the menu at a restaurant you'll end up with some sort of fried batter with diced chiles inside. It's gonna take you a long time to do all the work to the chiles.