Sure. It's kind of clumsy but for writing small programs or just practicing coding a small tablet or even phone will do. C4DROID, CppDroid, etc. Just search Google or the Apps Store. I also recommend you get the Hacker's Keyboard app. It gives you a virtual keyboard with a real keyboard layout so it's not so hard to find the keys you always use in programming like the function keys, HOME, END, etc...