Yes. It certainly can! The exact surgery (or trauma) involved, and whether this is in a man or a woman will help identify clearly the possible problems. But healthy nerves are critical for normal sexual function, as are healthy blood vessels and circulation. Medications can cause problems as well.
May be. Depends on which ner is damaged.