I wouldn't, but with many plants you will often be able to get away with it.
Some grow better with a period of darkness. Also, the bigger problem is that some things are daylength sensitive in terms of bolting. If you raise them from pups believing that day is infinitely long, then put them outside where suddenly the day is shorter (and unless you live above the Arctic circle, the real world WILL have a shorter day than that

), they may run to seed earlier than they should, giving you less production time and smaller plants before they become inedible.
I do not remember exactly which plants this is relevant to, but I am thinking cilantro and lettuce at least... it's too early in the morning for me to have to rack my memory for these things
Note that I was raised to believe that lights should be set at a 12-14 hr duration, and thus have never actually *tried* 24 hr lights myself, the above is just What They Say. I will tell you that aquarium plants, and some houseplants, do distinctly more poorly in 24-hr light.
Dunno if that helps any,
Pat