I wouldn’t train a dog like that unless I wanted a biter.
You have to determine to be the alpha from the beginning. Once that is established, they'll never try biting again.