My parents schooled me on this years ago.
If you aren't married don't sign shyt, I don't care how much you love and trust her. Get a paternity test.
If you are married then she's got you. Doesn't matter who she goes out and has a kid with the law recognizes it as your baby.
Be careful who you marry.