Obstetricians play a vital role in ensuring the health and well-being of both the mother and baby throughout pregnancy.