Hip operation and erectile problems

Patient: Hi I’ve just started to have erectile problems eg. keeping it hard or premature ejeclation. But this has only started since I broke my hip and had it operated on.. its starting to worry me. Can u help? Will it go away? I’ve never had this problem before.