I'm not sure it makes any sense to talk about "teaching research mathematics". If it's research mathematics (as in, discovering new math), it should not and cannot be done in a classroom setting.
With that in mind, it is certainly possible to be a good math teacher while being a poor or mediocre researcher. Their students are probably not be prepared for an academic math career, but they can walk away with a solid understanding of established mathematics nonetheless.