15 & 17 yr old dating

Is it wrong ?if they had sex is it ok???