if a woman is pregnant can she still go for jihad?

if no then, can she go as soon as the babies born or wud she have to wait untill 2 years for the baby to be weened?