No. Spanking is necessary, up to a point. The parents just have to realize when the spanking is no longer effective.
There are no set rules, no set 'ages' for these things to occur, and it is up to the parents to know what is right and when.
Often they don't, and.... well... nobody is perfect. Such is being a parent.
A little “marginal pedo-masochism” is o.k. for babies?
No, I don't spank ‘little babies’ since they can hardly be assumed to understand their actions or be held responsible.