I think you absolutely could. Here's a few files I had lying around, take a guess: https://imgur.com/a/iTNJ8zw
The first one looks like some kind of configuration language, most likely JSON due to lots of matching { and }, colons and no semicolons.
The second one I really can't tell. It's most likely some sort of curly brace language, Typescript? Java?
The third one really looks like Python: no semicolons, no braces, [ and ] for list/dict access, # for comments, @ for decorators.
The fourth is also tricky. I want to say HTML-ish because of the </> sequences, but it also looks like a curly brace language! I'm going to guess it's a JSX React file.
2. Typescript (Angular)
3. Python
4. Javascript (React)
Spot on with the guesses!