The answer is no. There are uniquely determined linear polynomials $a_m(x):=x-c_m$ over $\mathbb{Q}$ such that $g(x)$ is identically zero on $\mathbb{Q}$. Indeed, for such polynomials the condition saysmeans that $$ \sum_{0\leq m\leq n-1}(b_n-c_m)\cdot(b_n-b_1)\dots(b_n-b_m) = 0,\qquad n\geq 1. $$ Here, the second product is meant to be $1$ when $m=0$. Now suppose that, for anya given $n\geq 1$, $$ \sum_{0\leq m\leq n-1}(b_n-c_m)\cdot(b_n-b_1)\dots(b_n-b_m) = 0. $$ Suppose that the coefficients $c_m$ has$c_m\in\mathbb{Q}$ have been chosen alreadydetermined for every $0\leq m<n-1$. Then, the above equation determineshas a unique solution for $c_{n-1}$ uniquely$c_{n-1}\in\mathbb{Q}$. So we obtained a recursion for the rational numbers $c_0,c_1,c_2,\dots$, and we are done.