Yes, it is possible to judge the sex of the child. This can be done by amniocentesis. It is a technique used to detect the abnormalities and sex of the fetus by obtaining a small amount of amniotic fluid with the help of a needle inserted into the uterus of the mother. However, amniocentesis is illegal and should not be done.