This statement is true. Amniocentesis is a prenatal test to see if a baby is going to have any genetic or inherited disorder. The description in your question, is what the doctors do to figure out the genetic composition of the baby.
Hope this helps :)