Do you believe that it was immoral of lawmakers in my state to let that 23 year old have sex with 17 year old me legally?

Do you believe the only moral thing to do was to put him in prison for 3 years?

Do you believe that the correct moral choice is to imprison 23 year olds who make love with 17 year olds? Is 3 years, like they get in Idaho the morally correct punishment?