Yes, although I don't know why you'd want to. You can type your code in pretty much any ASCII text editor. If you want to do it all fram the terminal use emacs. Then to compile, simply go to the directory that you have your code and type cc mycodename. You should make sure that your files end in .h or.cpp or .m or whatever is appropriate or else it might not compile correctly. For C++, use the command c++ from the command line instead of cc. You can also do stuff with make files and the like but I don't know how those work.