Default digital/analog pin state - input or output? (do unused pins need to be grounded to prevent floating inputs)

Ok but isn't this the default setting for pins? Shouldn't this be unnecessary?