Yes.
It made me smart enough to know that spanking is a shitty punishment that doesn't work and is often immediately enacted in the heat of anger without a proper assessment of what has actually transpired. I have, therefore, learned that physically harming children as a form of discipline sets a terrible example and won't ever be doing it to anyone myself. Discipline based in reason and composure is far more effective and inspires a far more genuine respect. If my own experience is anything to go by, children receive all the beatings they really need from other children already, without any outside interference. Spanking just teaches that it's okay for the physically stronger to abuse those under their care and perpetuates the cycle of violence. Both of my parents would get angry and punish me in this manner when they thought, often mistakenly, that I had done something wrong as a child and, while I love them very much, I have very little respect for them as a result and was forced to seek out role models who understood self control and the value of fully understanding a situation before administering punishment.
Spanking may be a disciplinary tool when applied properly, but I argue that it is a very inferior one when compared to that offered by a system of rules and rewards. I did not receive proper discipline as a child until, at the age of eight, I prepared a contract, which both I and my parents then signed, stipulating exactly the rules I was expected to follow and what my punishment was to be in each case. This primarily consisted of withholding my weekly allowance, then $5, if I broke any major rule or broke a minor rule three times or more. My property was not to be touched unless I had in some way definitely abused it (as in using it to cause harm to another person or their property) and money I earned from yard work was mine to keep and could not be docked except for misconduct in the performance of said work (It would be absurd to perform labor for no certain pay, especially when I was expected to the work of a professional). As I received no additional money or any gifts outside of my birthday and Christmas, this system proved very effective in teaching me not only to maintain proper social conduct but also to manage my own finances with care in a way which physical punishment, always the first resort of the brutish and unsubtle, could never hope to have done.
In contrast, when I was spanked I merely resented my parents and learned to break rules without them noticing. I have never bowed to a system which does not command my respect and I do not believe that physical aggression of the strong against the weak can be justified in such a case unless it is in retaliation for a similar offense. For example: If your child hits you, it is then perfectly acceptable to spank them in retaliation. This teaches the important lesson that they shouldn't pick fights with people they can't beat.
If parents didn't spoil their kids rotten in every other way possible, the need for this kind of punishment would rarely arise.