Yes, you could run into issues, if you are trying to compile legacy PyTorch versions with more recent CUDA versions, since CUDA methods might have been removed, changed etc.
What’s the reason you would need an older PyTorch version?