CUDA toolkit compatibility

I want to rent a server with GPU on a Windows instance. The only good provider that I found offers only “Windows 10 running as Windows Server 2022” as OS, and the version of CUDA that I need (for Tensorflow) is 10.2. It supports installation only on Windows 10 or Windows Server 2019. So, is it possible to install CUDA as any of 2 mentioned types for my instance? Maybe they have compatibility by any chance?