A human has both female and male chromosomes pairs (47XXY, 46XX/46XY, 46XX/47XXY or 45X/XY mosaic) and usually both testicular and ovarian tissue. However there are many variations and some hermaphrodites have more male genitalia while others have the opposite.
Whether a hermaphrodite could get pregnant and carry the pregnancy and have a baby depends mostly whether they have a more complete set of reproductive organs. So if there is a fully functioning uterus and ovaries, then it's theoretically possible to get pregnant and have a baby.
However, most if not all true hermaphrodites have incomplete reproductive organs and a pregnancy would be etremely rare.