Compute capability 5.2 is compatible with the current release (1.9.0) and you should be able to install the binaries or build from source using CUDA>=9.2 (I believe the min. CUDA toolkit version will be bumped to 10.0).
Note that you do not need a local CUDA toolkit installation, as the binaries (pip wheels and conda binaries) will ship with their own CUDA runtime (cudnn, NCCL, etc.), so your workstation only needs a valid NVIDIA driver for the selected CUDA version.
However, you would need a local CUDA toolkit in case you want to build PyTorch from source or build any custom CUDA extension.