Is planning the game (e.g. a design doc) allowed before the jam starts?
Yep! But just keep in mind that there'll be a theme which will be revealed at the start of the jam.
but this theme which will be revealed is optional, right?
Yep