Hi,
Unused pins can be configured as inputs or outputs. But because internal pull resistors are active only in the input mode, it is better to set them as inputs and enable pullups. Many pins have pullups enabled by default, out of reset.
Regards,
Daniel