Matt Gaetz being investigated for sex with 17 year old girl (DOJ declines to charge 2023-02-15)

I skipped to the end, and, of course it is far from admirable, but isn’t sex with a 17 year old legal in New York?