Well even if both of them are adults (over 16) I think it would be ok as long as they dont go to the same school like birdgirl said that would be an abuse of the teacher-student thing and even though you might not be breaking the law the teacher would still lose his/her job because of it, Its just exactly the same as the doctor-patient thing really its just something you dont do.