If your male tried mating with the female, even if she was pregnant from a previous male, the females tend to naturally select the fresh source for the next pregnancy so it's quite possible the male in the tank is the father. It's not a guarantee of course.