All I can say is that the upgrade from Windows 10 to Windows 11 is mostly cosmetic, the requirements for both are virtually identical so the upgrade from 10 to 11 should be possible on an iMac running Bootcamp.
Of course there are no guarantees of this as Bootcamp is a virtual system rather than real hardware. I would strongly recommend that before proceeding you create a full backup of your present setup. The update should also handle any product/licence key in use