They must have the code in their genes in order to express it and they can have the code but not express the trait depending on the regulatory mechanisms which determine if the genes are turned on or off
Sexual reproduction happens when there is the involvement of two parents to give rise to the offsprings.
For the production of offsprings, each of the parents produces a haploid gamete and it is by the fusion of these two haploid gametes that a diploid organism is produced.
In the given situation, there are 19 chromosomes present in the haploid gametes this means that a diploid individual will have 2X19 = 38 chromosomes.
Now the underground stem cells are not gametes but somatic cells and the somatic cells are diploid and hence, they will have 38 chromosomes.