Depends on what the laws regarding the age of consent are, where both parties live. IN NY, I believe a 17 year old can consent to sex with someone that is over 18, but NOT over 21. Other states have different laws.