Can a 16-year-old pregnant girl get married to a 23-year-old male in New York without him getting into any trouble?

A 16 years old would need parental consent to marry even if she is pregnant. A serious problem is the age of sexual consent in N.Y.it is 17. Therefore the 23 years old male can possibly face numerous criminal charges, such as statutory rape, sexual battery, corruption of a minor, and so forth. It would be prudent for the young man to consult legal council and not discuss the issue with anyone else until he has obtained qualified legal advice.