According to wikipedia you're correct, see the following link:
David marries Dora, who he loves despite her uselessness in household chores. She soon falls ill and dies, leaving David single and heartbroken. He travels throughout Europe, during which time he publishes his first (unnamed) novel with the help of old school-friend Thomas Traddles, and during this odyssey realizes he loves Agnes Wickfield, praying she loves him too. Upon his return he proposes to her, and the two quickly marry. They later move into a house in London along with their young children, which include at least three girls (Little Agnes, Dora, and Betsey Trotwood Copperfield) and at least two boys. They live a wealthy lifestyle on David's successful writing career.
Thereby, Agnes becomes his 2nd wife.