No, you don't; if they are well below the age of reason, they are well below the age at which they will connect the hit with the reason for it.
That's why you don't let kids that young around a stove in the first place, and if they do get loose around one, you restrain and remove them. This may involve incidental pain, but not intentional, instrumental pain.