Getting married and getting a license is no problem. If you are not married and have children born before marriage, the two sides will negotiate who will raise them. If negotiation fails, it shall be handled according to the interests of the child and the specific conditions of both parties: in principle, it shall be raised by the mother during lactation. If the father is in good condition, the mother can also raise him with his consent. According to Article 25 of the Marriage Law: "Children born out of wedlock enjoy the same rights as those born in wedlock, and no one may harm or discriminate against them. A biological father or mother who does not directly raise a child born out of wedlock shall bear the living expenses and education expenses of the child until the child can live independently.
In short, be careful!