if it was copy writed then no....
Best thing to do is to email the author and ask them....
I can't see a problem provided your not making people pay to play the game.... BUT ASK ANYWAYS!
:edit
however, saying that.... if your only using the program for yourself and your personal pleasure then as long as you don't put it on a public server then they wont know about it....