Hi, welcome to HCM. .
There is no relation between femur fracture
operation and erection. Erection is mediated by sacral plexus of nerve
. If there trauma at buttocks with injury
to sacral bone then erection problems can occurs.
For sex related problems it will be better if you consult sex therapist . You will get proper guidance or medication depending on exact cause.
Hope I have answered your query.