If you intend to install both, install Windows first. It has a habit of overwriting other bootloaders.
When you install Linux second, it should install a bootloader that will let you choose which OS to boot each time you turn on the computer.
Always backup data you care about. Installing an OS carries some risk of data loss.










I have used AI to give me the syntax and function names I need, then researched those functions and found better ones instead.
I once asked AI to show me how to do something and it gave me a 20 line script. After 2 hours working with it, I finally got it to work. Another 30 minutes of optimizing and got it down to 3 lines. A bit more research and I discovered that what I wanted was actually a language feature, and I just needed to call a single function with a single argument.
AI occasionally saves me time, and usually causes a significant time waste.