Yes, it is possible for a female dog to get pregnant while bleeding, though it is less likely than during other stages of her heat cycle.
Bleeding usually occurs during proestrus, before ovulation. Ovulation typically happens around day 11 or 12, when fertility is highest. However, mating during proestrus can still result in pregnancy.
To prevent unwanted pregnancy, keep intact females away from males throughout the entire heat cycle.