Even if you could, I'm not sure you'd want to. Typically code is encapsulated in a function or IP because you want to us it in multiple places, which often means running it many times within the execution of a procedure. That could lead to the creation of a lot of streams if you weren't careful, and likely also a lot of extra overhead.