If you write your own Arduino core for it you can use it like an Arduino but generally it's best to stick with genuine Arduino hardware.
There are a number of tricks for extending the number of output and input pins. You can use three pins to control a shift register to add outputs or inputs in groups of 8. It would almost certainly be easier to do that then to re-write the Arduino core libraries to support a new processor.