Corn on the cob is edible when raw and raw corn from the cob is good to add to a salad.
I've eaten raw corn in salads for years now and I'm still in good health so it's safe.
Raw Corn on the cob actually tastes much better to me than cooked corn on the cob.