After serving nine months in prison for stealing, Jacqueline McDougall's future was on the line. A parole board would decide whether she would be locked up for an additional three years.

But her fate was not the only one hanging in the balance. If denied parole, McDougall's young son Max, who grew up behind bars with her, would be sent home if he became too old.

"Nightline" spent a year following McDougall and Max at Bedford Hills Correctional Facility for Women in Bedford Hills, N.Y. They are part of the small, but growing number of inmates raising their babies behind bars.

The vast majority of the 2000 or so inmates who give birth in American prisons are separated from their babies shortly after birth. Bedford is one of the handful of women's prisons that allow some incarcerated moms to keep their newborns with them, in some cases until the babies are 18 months old.

"I think seeing his little face every day and know that…I have to take care of him is going to be a big incentive for me. Definitely," McDougall, 26, told "Nightline."

No one convicted of violent crimes, arson or crimes involving children are allowed into Bedford's program. McDougall landed herself in prison after she got caught stealing silverware. She said she needed the money to buy drugs, including prescription pills and cocaine. By the time she was sent to prison, McDougall said she was clean, but also pregnant.

"My water broke here then I went out to the hospital. I was in labor for 48 [hours] with Max," McDougall said.

Though inmates accepted into Bedford's program live in a separate wing apart from the general population, it is still a prison. Inmates are not allowed to have cell phones, jewelry, or wear makeup, and they can only have three photos a month of their baby.

McDougall's prison cell was the only home Max had ever known since his birth. "We don't have a lot of space," McDougall said of her cell. "It's hard."

However, giving birth to Max in prison, she said, was a blessing in disguise.

"I've had time to clean up my act and really see where I was headed," McDougall said. "It wasn't in a good direction. I think at the end of it all now. I kind of think this saved my life."

Dr. Janet Stockheim, a pediatrician who comes every two weeks to check up on the babies in the prison, including Max, said it can benefit a baby to be raised behind bars.

"The babies aren't aware. They get excellent care," Stockheim said. "They are very well bonded to the mothers… Bonding gives a baby trust in the world that they will be taken care of. The babies do better here than they would on the outside with some of these mothers."

Max and his mother have never spent a full day apart. Aside from her chores in the prison block, McDougall is a full-time single parent, bathing, diapering, and nursing, which heightens bonding for both mother and baby. The mothers also get parenting classes.

"As much as I hate being here, this has really helped me, being a mother. The motivation to get up every day," McDougall said.

While the mothers and their babies receive a lot of care at the prison, Liz Hamilton, who runs the nursery program at Bedford, said the mothers are still inmates.

"It is punishment. Of course you see the warm, fuzzy, the baby care, but you don't see the waking up early, getting all the chores done," Hamilton told "Nightline." "They don't have their freedom, and they don't get to make all the choices they would make outside."