Hard to say.
I don't see myself spanking my girls. I don't see myself spanking a boy as well.
I would rather not.
Maybe in some rare cases it could be justified ?
It depends on the child as well.
So no 99.999% of the times and maybe 0.001% of the time