Waiting until you see pre-flowers (to determine the sex of the plant) is usually a good idea. Just keep in mind that the plant will double or triple in size from the time you start flowering, so sometimes you need to flower early so you don't run out of space.