Surgeries like vasectomy or hernia repairs may affect fertility, but fertility restoration procedures are available.