This article describes ways to set up Windows 11 with a local user account instead of an online Microsoft account:
https://www.tomshardware.com/how-to/install-windows-11-without-microsoft-account