Many people share your concerns. It’s true that prostate surgery can affect sexual function, particularly because the nerves responsible for erections are around the prostate. However, the impact varies depending on the type of surgery and individual factors. Nerve-sparing techniques have been successful for many, though not everyone is a candidate. Recovery may take time, and some manage side effects with medications or devices to aid erectile function. Discussing options with a healthcare provider can help you understand potential outcomes based on your specific situation.