Polenta is coarsely ground cornmeal. Cornmeal that's used for baking is usually more finely ground. You could substitute it but your polenta may turn out pasty.