It is a grammatical sentence, but it is also a rather odd sentence. It seems to be talking about two different groups of people. Perhaps:
- Some of them were very afraid, and some of them ran away quickly.
What do you think?
- Some of them were very afraid, and they quickly ran away.
- For Teachers