Can you echo PHP code from a variable?

Since actual output seems to be done via echoing global variable nothing prevents you to change that variable to something else (between the points where theme creates and echoes it). Like a result of advertisement manager function call.

However I think it would make more sense to stick with one of two functionalities rather than trying to mash them together.