Nope, I have a daughter on the autism spectrum (whatever that means).
She has a very high pain tolerance. Whatever way she is wired, if you spank her, she will just turn it into a game in the future. As in deliberately misbehave and asked to be spanked.
I’ve only spanked her a couple of times her whole life. For getting into life threatening situations, and for hair pulling of her twin. I learned real quick that spanking had an adverse effect.
Shouting/losing temper is not a good solution either. Have to be Mr. Spock and be extremely level and measured. My daughter hasn’t scratched for years, but a couple of weeks ago she drew serious blood from my face, and I didn’t react. Reacting reinforces the behavior.