I get what you’re saying, but the way you phrased it is wrong. An herbivore is an animal adapted to eating plants, so it can’t sometimes be carnivorous because it’s never adapted to eating meat.
Anyway, I say yes, because extant herbivores, like gorillas, will sometimes consume meat