Yup. They're are also other things besides lighting and genetics that can affect the sex of your plants.
This is an excerpt from Dutch Passions:
From literature and our own findings it appears that the growth of a male or female plant from seed, except for the predisposition in the gender chromosomes, also depends on various environmental factors. The environmental factors that influence gender are:
- a higher nitrogen concentration will give more females.
- a higher potassium concentration will give more males.
- a higher humidity will give more females.
- a lower temperature will give more females.
- more blue light will give more females.
- Fewer hours of light will give more females.
I've followed the rules of this list for around twenty some grows and it hasn't failed me yet with only a 5-10% ratio of males coming from non-feminised seeds.