Yes check this: http://dotnetacademy.blogspot.com/2009/09/can-i-write-il-programs-directly.html
You can. Write the code in notepad, and compile it using ilasm utility.