No. The legitimacy of children is determined by the laws of the states. Just as a divorce does not make children illegitimate, neither does an annulment granted by the Church. The laws of the Church state that children born into a marriage that are recognized by the state are legitimate children. Therefore, if the marriage is later shown to have been invalid, the status of the children remains unchanged: they are legitimate.