This is true for the seedling stage of the plant. Once it begins to grow secondary branches..which would be about a week or two at 24/0 you'd want to bring it down to a 18/6. The Light cycle has alot to do with the continuity of the plants sex. High stress will cause even completely female plant to grow male flowers. Have enough male flowers..and you have a hermie.

Constant light will stress the plant once it's old enough..