There is no need to give a corn UV. They are nocturnal and get all the vitamins they need from whole food items. They do not need UVB, like many Lizards, for example, to absorb the nutrients they need.
I doubt it would hurt him at all, but is unnecessary. Also, make sure it doesn't raise temps too much. Corns do not need, or like, as much heat as a BP, for example.
If you want it for a day/night cycle, I would say it's no problem. However, he will probably choose to stay hidden as opposed to basking in it. I use fluorescent lights in my snake cages for day/night cycle.