mos_8502, It is perfectly safe to install Windows 2000 in 2023.
It's just not safe to connect it to the Internet. There's a difference.
What is called for is either sneaker net (put it on a removable disk and move it over manually) or an Internet-isolated network drive with extreme malware scanning and removal.