Corn always tastes best when freshly cooked. However, you could cook it ahead of time and refrigerate it. Reheat by microwaving or steaming in the Instant Pot with the steam release handle set to Venting.