Under G.L. chapter 209C, § 14, the mother, but not the father is allowed to file a court case while she is pregnant. Paternity, however cannot be legally established until the child is born even though the father and the mother-to-be agreed verbally or in writing that she is pregnant with his child.
The laws and procedures governing adjudication of paternity disputes as to children born out of wedlock is governed by M.G.L. chapter 209C. The underlying policy of this chapter is that "children born to parents who are not married to each other shall be entitled to the same rights and protections of the law as all other children."