Yes, you can and this is a great way to keep it for a longer time. Remove and discard the silk and husk, then blanch the cobs in boiling water for 4 minutes. Next, plunge it into ice water or cold water to stop it from cooking further.  Pat dry with a paper towel then arrange it in a single layer on a cutting board or baking tray and refrigerate. Once it's cool, transfer it into a freezer bag or airtight container to prevent freezer burn, or a layer of plastic wrap and then one of foil. The shelf life of frozen corn is up to 12 months.