Definitely. Um, don't know how to expand on that, but yes, of course it is
www.linuxfromscratch.org www.gentoo.org www.debian.org All of these (and many more) actually do the installs from "DOS" and (with the exception of Debian) after the initial install, will not have a gui, you must choose what you want to use beyond the base install (which does not have any gui).
HTH
Cool