Technically, but have you ever worked at a shell on an Android device? It feels alien, and all the interesting stuff is wrapped up in the JVM so the fact that it's wrapped in Linux doesn't gain you much.
You should give Termux a try. It's an honest to goodness "Linux environment" with a full package manager for many many popular tools and utilities, including the build essentials if you want to compile software directly on your device.