Sure, as long as the program is started by root (or setuid, but that's a security hazard). Check out nano, that's a great one
Or what do you mean? Like in "vipw"? Try "export EDITOR=<editorname>", than another editor than vi is used...
Cheers
Philipp