Is it okay to wire an MCU output to an MCU input on the same chip?
It's not just possible, it's darn useful.

All pins are inputs on power up.

Commonly used by embedded software guys like me to give a interrupt from a GPIO.

Who says there's no software interrupt instruction ?