The dialogue about Carrie thinking she could have stopped 9/11 comes directly from the pilot. Sure, it's kind of laughable that she could have really done anything, but of course she thinks she could have; she's Carrie. (The Homeland wiki says she joined the CIA in 1999.)