Autism is a disorder that can require medical treatment. If a doctor could screen for risk factors and provide medication to pregnant women that reduced the chances of autism developing in the child, it would be their duty.
It depends on the acuity of the test imo. Autism is a spectrum. High functioning and low functioning autism are two different beasts. If they can't differentiate between high and low functioning, I agree that they should do what they can to try to prevent it. If they can predict high functioning, I think there's a real debate to be had. Especially if there are any potential risk factors with the treatment.