Yup. Recycling old code and assets is allowed. No need to make everything from scratch. The majority of the game should still be created during the jam, though.
Se reusing a mechanic and maybe some code: Yes.
Taking a finished game and just slightly changing it up: No!