You can think about ideas and make small tests/prototypes before the jam starts.
But the actual game you submit should be made during the jam period.
So testing mechanics before the jam is fine, but please don’t submit a game that was already mostly finished before the jam.