Short answer, do not do that.
Long version, if your computer is running XP, it is quite likely that your hardware does not support windows 11 requirements, which can and possibly will cause trouble later on.
main problem with upgrading is drivers, while most common ones are included with windows itself, it is possible that some parts are not.
This is the only reason to do tiered upgrade, which kind of keeps old xp drivers to 7/8 and from there to 11, downside is that without registry hacking or doing clean install, you cannot install windows 11 on unsupported hardware.