Yep termux is a Linux terminal emulator for Android. It is basically a small Linux on your phone. Obviously you can code in termux.