Why are MCP23017 (port extender) input pins high by default?

so can it be handled in code?or a resistor required?