A person under the age of 18 years cannot legally consent to sexual intercourse. The age of consent is the same for both males and females. Therefore, if you are 19 years old and have sex with a 17-year-old, you could be arrested for a sex crime. In most cases, the crime would be statutory rape.