Actually you can on every other option, ROBOTC, ConVEX etc.
What you can not do is use both port 4 and port 10 at the same time for something like a quad encoder or sonar that need to configure those ports as interrupt inputs. There are several old posts discussing why, here is one.