as far as the pre-determined genetic and the environmentally influenced sex of a plant, neither one has 100% control. Nature and nurture have effects on the matured sex of the plant.

I am unsure if a female seed can turn completely male, however, it CAN turn into a hermaphrodite. Do some reading on proper LST technique and if you buy regular seeds and get a male, chop it down unless you plan on breeding.