The simple answer to the question is no, you can’t retake the quiz if you’ve already taken it on that. Delete your wizarding world account and create a new one.this is the only way to retake the quiz and get a different result. There are a few ways to retake the sorting hat quiz on wizarding world.
Full pottermore house quiz
Pottermore your house quiz
House sorting pottermore quiz