There have been multiple instances where submarines surfaced right inside a carrier group, some in active exercises where a threat was expected. Even the Chinese did it at least once and there is a high chance that the Chinese did not surface on their first few encounters.
https://www.dailymail.co.uk/news/article-492804/The-uninvite...