Yes.  A paternity action can be commenced before a child is born.  However, very few actual steps can be taken.  Service of process can be achieved, and depositions may be taken to preserve testimony.  Otherwise, the action will be stayed until the birth of the child.