Is this possible?

you can write an interpreter for the code that reads a command from SD and then executes it. Then it goes to the next line.
Not trivial to implement.

have a look at bitlash - http://bitlash.net/wiki/start - to get started