Yeah, you can even use tree-sitter to implement a language server, I've done this for a custom scripting language we use at work.