Corn does not typically need to be refrigerated in order for it to be safe to eat. You will want to be aware of the fact that the longer you keep your corn in the refrigerator, the more flavor and vitamins you will lose, so it will not have quite as much nutritional value or taste to it. Corn lasts around one week in the refrigerator and the longer you keep it in there the longer it will last. There are many different varieties of corn, but with most of them you will not need to put them in the fridge in order to make sure they are safe for eating.
By keeping your corn in the refrigerator though, you will ensure that the sugars keep and do not turn to starch. Though you do not need to put your corn in the refrigerator for safety/health reasons, it does keep better in there. Ultimately it is up to you and so you will not need to put it in so that it is safe for you or others to eat after you bring it home. The only way you will know whether or not your corn is good is to simply cook it and take a bite.