The OP does seem to imagine that the babies or eggs appear some time after the female has been in contact with a male. This is not so; the eggs are laid at the point of mating; the fertilisation happens outside the female's body. Putting the female alone in a breeding net would simply guarantee the fish could not breed.
This confusion is why I think that using the term "pregnant" in this way encourages confusion and should be avoided.
The fish may well be swollen with eggs, but it's extremely unlikely it will breed. Cardinals are not easy to breed and require very soft water, very subdued lighting and a lot of luck.