If the child's father has credit problems, it may have an impact on future finances, such as loans and credit card applications. But this usually only affects the child when he is an adult, and the degree of influence depends on the relationship between the child and the father.
If the child's father has a criminal record, it may affect the child's employment prospects in certain fields, such as government work and legal profession. But this does not apply to all industries, and the specific situation needs specific analysis.
Generally speaking, marriage will not directly affect a child's credit or criminal record, but the child's father's bad record may affect the child in some way in the future. Therefore, it is recommended that you carefully consider all possible consequences before making any decision, and make sure that you have understood all possible problems and challenges.