No, often when assignments are given out you'll also give students large chunks of code or libraries to modify or work with.
The DMCA says that is what the infringement is.
The DMCA says that is what the infringement is.
I don't think you can claim that changing code absolves you of copyright issues, it might make it harder to find though.