Yes, you can. I just now downloaded a win11 23H2 iso and installed w11 pro without going outside of the OOBE. Sure, you shouldn't have to click 'domain join instead' etc, but you can absolutely do it without doing anything outside of the OOBE.
Here are the exact steps I used: https://pastebin.com/nDnLBYg2