if you have sperm but they are not motile, that is not related to varicocelectomy.
in varicocelectomy, there is a risk of damage to vas (tube carrying sperm). then there will be no sperm at all provided both sides are affected.
if only one side is affected, there will be a reduction of sperm count