can a doctor tell if you had sex