Paternity

Does anyone know if you can do a paternity test before the baby is born?