No. Sarah Jessica Parker was not pregnant during the filming of the Sex and the City TV series (1998–2004) or the first movie (2008).
In the 2008 film Sex and the City: The Movie, Parker's character Carrie Bradshaw becomes pregnant—a scripted storyline. Parker gained weight for the role, but it was prosthetic and performance-based, not a real pregnancy.
Parker's real-life pregnancy journey (surrogacy) occurred after the movie wrapped, not during the series or film production.