Can division algorithm be valid when the divisor is zero
Suppose I’ve polynomial $g(x)=x-1$, $p(x)$, $q(x)$, $r(x)$ and when I divide $p(x)$ by $g(x)$ i get $q(x)$ as quotient and $r(x)$ as the remainder. According to division algorithm
$$p(x)= q(x)(x-1)+r(x)$$
Now my country’s textbook proves the remainder theorem by substituting $x=1$ in division algorithm but I want to ask that can we use the division algorithm even when the divisor is zero. I think we can’t since division by zero is not defined and thus division algorithm for the same will also be undefined
So is division algorithm is still valid when divisor is zero? Please do tell any other restrictions(if any) for division algorithm.