Uncooked grains and corn kernals are prone to several bacillus bacterial strains which can be fatal.
Cooking them makes them safe in almost all cases, as long as they reach the correct internal temperatures and stay hot for some time.
Even after cooking, if it tastes even a little wrong then toss it anyways.
It is unsafe at room temp. Kernals and grains must always be cooked before eating. They are prone to deadly Bacillus bacteria strains.