A man can have sex after having kidney stones. But if kidney stone removal has been done by stent placement then stents with a thread may significantly hinder sex. The stent also can rest on the prostate gland in men and with ejaculation/orgasm the prostate may have movement that is discomforting to the patient and similar to severe cramping or irritation.
I sincerely hope that helps. Take care and please do keep me posted on how you are doing.