A female dog can go into her first heat cycle as young as 6 months, though it can happen as late as 12 to 24 months depending on breed. If your dog becomes pregnant at 10 months, take her to the veterinarian for a checkup and to discuss your options. The vet can determine how far along she is and advise on care for the mother and puppies.
Spaying before the first heat cycle or before 6 months offers significant health benefits, including reduced risk of uterine cancer, breast cancer, and pyometra.