Corn is much harder to get viable seeds. First off that are wind pollinated so it takes lots of get any diversity. They recommend you have at least 200 stalks before saving and seeds while they say you can save the seeds from your one pumpkin vine.
Also if it's commercial corn it's a hybrid from two inbred strains. So this hybrid won't breed true. You will need an heirloom variety for that. (This is true for almost all commercial plants).
That being said you might get something good