Possible spoilers for Star Trek: Strange New Worlds and Star Trek: Picard follow:
I always, perhaps wrongly, thought that David Marcus was completely a retcon invented for The Wrath of Khan. And I thought that the implication was that Kirk was not aware of his son until they met in that movie. I assumed that this was to avoid making Kirk into the deadbeat dad bad guy. (In this respect, that would be similar to the relationship between Picard and his son, Jack Crusher, years later).
Now, as of the Star Trek: Strange New Worlds episode "Subspace Rhapsody", it is definitively established that Kirk knew about Carol Marcus' pregnancy and even that the child was male.
Did I wrongly remember or wrongly interpret the previously established canon regarding the relationship between Kirk and David Marcus and Kirk's knowledge thereof? What facts around this where established when?