Do whatever you want with the code. Just don't publish it as your own work without changes.