Hi there ~
Although I do not want to reassure you entirely that it is not the result of surgery that you are having these sexual problems, it might be good to take it easy for a few days before you start having the same kind of sexual activity as before. I hope this helps relieve your anxiety
. And moreover you have had a surgery in a part of the body that is used very much during sexual activity. You might want to consult with a sexologist
as to what exercises might benefit your sexual practices in the future. I hope this helps.
Take care and have a lovely day!