Can a gents Dr do a delivery of women ?

If the doctor of the same sex is able to cure the patient than it is impermissible to refer to a doctor of the opposite gender.