Yes, it is possible for a 12 year old dog to get pregnant, and it is also possible for a 9 month old male dog to sire puppies.
Just because her nipples are swollen does not mean she is pregnant, but she could be.
A dog this old having puppies is at risk for a lot of complications.