Pregnant and don't know the daddy 🙄

So I had unprotected sex with two people and I don't even know who to tell. Can you get a DNA test while pregnant?