of course you can spank your child if he is deserving of it.
if he become rebellious you can take him to the Elders to have him stoned to death
Deuteronomy 21:18-If a man have a stubborn and rebellious son, which will not obey the voice of his father, or the voice of his mother, and that, when they have chastened him, will not hearken unto them:
Then shall his father and his mother lay hold on him, and bring him out unto the elders of his city, and unto the gate of his place,
And they shall say unto the elders of his city, This our son is stubborn and rebellious, he will not obey our voice, he is a glutton, and a drunkard.
21And all the men of his city shall stone him with stones, that he die.
It is the word of God