Painful penetration

Has anyone ever experienced painful penetration at the beginning but after a minute or 2 it becomes enjoyable but it's really sore to get in? If so do you know the cause?