Hi There!
As long as you follow the theme and rules of both jams, you should be fine rulewise!
Keep in mind that I am not sure if you can submit one game to multiple jams, so keep some extra time to try that out and create an extra game page if needed..