<P> In the Season 5 premiere, "Weight Loss", Pam begins her three - month course at the Pratt Institute . In this episode, Jim proposes in the pouring rain at a rest stop, saying that he "can't wait". In "Business Trip", Pam learns that she is failing one of her classes and will have to remain in New York another three months to retake it . Although Jim is supportive and tells her he will wait for her to come back "the right way", she ultimately makes the decision to return home, saying that she realized she hated graphic design and missed Scranton . A deleted scene for the episode shows Jim looking through Pam's graphic design projects, which he thinks are "cool", as well as a notebook filled with pencil sketches, which he finds a lot more impressive than her graphic design projects, implying her talents lie in hand - drawn works . In "Two Weeks", Pam agrees to become Michael's first saleswoman in his not - yet - established company, The Michael Scott Paper Co., as a supportive Jim looks on . When David Wallace makes an offer to buy the company Michael negotiates in order to get their jobs at Dunder Mifflin back instead, including adding Pam to the sales team . In "Company Picnic", Pam, after dominating the company volleyball tournament, injures her ankle during a game and is taken to the hospital against her wishes . At the hospital, the camera crew is stationed outside an exam room while a doctor updates Jim and Pam on her condition . There is no audio as the camera shows Jim and Pam embrace, looking shocked and ecstatic . It is implied that she is pregnant and is confirmed in the Season 6 premiere, "Gossip". </P> <P> Jim and Pam marry early in the season, at Niagara Falls, during the highly anticipated, hour long episode, "Niagara". The ending of the episode, in which their co-workers dance down the aisle, is an imitation of a viral YouTube video--JK Wedding Entrance Dance . Following the wedding, a multi-episode story arc begins in which it is revealed that Michael hooked up with Pam's mother the night of the wedding . The two break up during "Double Date", an episode that ends with Pam slapping Michael in response to his actions . </P> <P> In "The Delivery" of Season 6, Pam and Jim have their first child, a daughter named Cecelia Marie Halpert . Jenna Fischer was granted naming rights by show producers, and chose to name her after her own niece . </P> <P> In "Counseling", Pam feels inadequate about her poor performance in sales and tricks Gabe into promoting her to a phony new salaried position called office administrator . In "China", Pam tries to use her authority as office administrator to force building manager Dwight to stop his annoying cost - cutting measures . Pam threatens to move the office to a new building, which Dwight discovers doesn't exist . Pam saves face, however, when Dwight secretly has his assistant provide her with a book on building regulations that proves Dwight's measures were not allowed . The episode is another example of Dwight's covert protectiveness and fondness for Pam (as previously demonstrated in "The Injury", "Back from Vacation", "The Job" and "Diwali"); Mindy Kaling said during an online Q&A session that Dwight has a soft spot for her that he does not extend to anyone else at the office . She also uses her position to buy Erin Hannon an expensive desktop computer to replace the terrible one she had to use for years, as well as discreetly giving Andy a new computer, and giving Darryl three sick days . At the end of the episode she proudly says that she is, "Full on corrupt ." </P>

When do pam and jim get together in season 3