No. These are separate issues requiring different surgeries via different routes and possibly by different specialists.
Hernia would be repaired by a General Surgeon. The prostate would be operated on by a Urologist.
Next Steps
Consult a Urologist and a General Surgeon.
Health Tips
A Urologist is also a General Surgeon. You could ask them if they are comfortable with hernia repair as well.