Yeah, there's no effort to direct or encode intent. It's just producing what it probabilistically wants to produce. If it happens to run...cool?
Here's a interesting example from Google DeepMind learning to generate code for Magic The Gathering and Hearthstone: http://arxiv.org/pdf/1603.06744v2.pdf