Usually a combination... But I'm sure if someone stuck with it long enough, they could become a black belt with just training.
Although, I don't see how you can NOT teach as you get more advanced. Giving advice or tips, or hell, just rolling with lower belts constitutes teaching IMO, since they're learning from you.
Good point.