Paternity test

Hello i recently found out im pregnant.

But the daddy is doubtfull and wants a paternity test im already feeling nauseas and what not with the pregnacy but does anyone have an idea if the test can be done while being pregnant?