will sex stop hurting

After how many times does sex stop hurting? When does it start to get enjoyable?