Male and female flowers can be on the same plant, its called a hermie.

You NEED to pull the balls of carefuly otherwise it will pollenate your bud, and you will have nothing to smoke. If you pull the balls of as soon as their appear you can grow a fairly good plant and actually get something at harvest.