Yes, text editors can be used for writing code in multiple programming languages, making them versatile tools for developers working on various projects.