Prenatal paternity testing

Has anyone ever did a dna paternity test while pregnant ? Is that even possible ?