I had testicular cancer in 2019, and one of my testicles was removed. I did not receive chemotherapy or radiotherapy. Would there be any problem with having a hair transplant?

Since you had testicular cancer in 2019, had one testicle removed, did not receive chemotherapy or radiotherapy, and have remained well without any problems for the past seven years, there is generally no obstacle to undergoing a hair transplant.
However, it would still be advisable to consult the doctor who has been following you regarding the hair transplant procedure. If your blood tests are within normal ranges, there is no suspicion of cancer recurrence, and you are continuing to live a healthy life, you can undergo a hair transplant.
In your situation, the fact that the cancer occurred seven years ago, that only one testicle was removed, and that you did not require chemotherapy or radiotherapy are important factors to consider. Nevertheless, your current health status and follow-up results should be evaluated before proceeding with the procedure.