No, in Spain, as in the rest of Europe, the free selection of sex is not allowed by law; although it is true that there are techniques such as PGD (Pre-implantation Genetic Test) that allow to know if the embryos in culture are male or female. However, although the choice is not allowed, there are some exceptions, in cases whose purpose is only to prevent the transmission of genetic diseases associated with sexual chromosomes. These exceptions are regulated in the Human Assisted Reproduction Act 14/2006, which also states that sex selection or genetic manipulation for non-therapeutic or unauthorized purposes is a very serious offence.