In a particular hive, all the worker bees are genetically identical sisters. But they still observe the division of labor: some nurse and some forage.
Nurses are younger and remain in the hive to care for the queen and her larvae. When nurses mature, they change jobs and become foragers that leave the hive to gather pollen and other supplies. By themselves, genes do not determine these distinct behaviors. Epigenetics, and its effect upon gene expression, may.
Environmental factors can alter the way our genes are expressed, making even identical twins different. So, while it is true that we have certain inclinations based on our genetic lineage, the way our genes are expressed will be largely dependent on our experiences.
In other words, study :)