While grilling imparts a smoky flavor, you can boil the corn if preferred. However, grilling is recommended for the best flavor and texture.