Rooftop a/c unit condensate discharge

Can condensate discharge from a roof top unit spill on the roof or does it have to go to a roof drain or guttering by code?