Yes you can, but it will never taste quite as good as when it is cooked fresh. Cooked corn can be stored in the fridge for up to 4 days or in the freezer for 10-12 months. Ref