photoperiod plants? if so just make sure not to interrupt the dark period and you'll control what you can control in regard to avoiding hermaphrodites.
Keep it happy and relatively stress free, That is all you can do.
if it's an autoflower, you don't even have to worry about he dark cycle.
"Nanners" (anthers, i believe) can be dealt with, but true herms grow pollen sacs, and those are a catastrophe waiting to happen. Lone nanners don't produce much pollen. One sac can pollinate an entire room.