No, Prov 13:24: "He that spareth his rod hateth his son: but he that loveth him chasteneth him betimes (diligently)."
I contend that you are not understanding the meaning of the word "rod" in this quote. I suggest that it takes on the same meaning as in the 23rd Psalm. "Thy rod and thy staff they comfort me", thy being the good shepherd. The rod is a stick used by a shepherd to guide the sheep in the way he wants them to go, not something that he beats them with.