Yup you can include a complete source of your example game, however don't lean on those files for your article. It's only a bonus and as such the magazine article must be able to function without the included source just as well.

But it is nice to have and very handy as I know from experience.