Not necessarily. Puppies cannot be born with heartworms. Heartworm larvae must first develop inside a mosquito and then be transmitted to a dog through a mosquito bite. Therefore, even if the male dog is heartworm positive and the female becomes pregnant, the puppies will not be born with heartworms.
However, the puppies will be at risk of developing heartworms if they are exposed to mosquito bites after birth.