The arguments you make need to be a little more precise, but the idea is correct!
Let the function $f(x)=e^x-(ax^2+bx+c)$ that is a continuous and differentiable function in $\mathbb{R}$ and let its derivative function $f'(x)=e^x-2ax-b$ that is continuous and differentiable in $\mathbb{R}$. The function $f(x)$ is in the conditions described by Rolle's Theorem on any closed and bounded interval we want.
Suppose $f(x)$ has $n$ distinct real roots with $n>3$. Let be the distinct real roots, which we call ordered from least to greatest, $x_1,x_2,x_3,\ldots ,x_n\in \mathbb{R}$. In such a case,
$$f(x_1)=f(x_2)=f(x_3)=\cdots =f(x_n)=0$$
By Rolle's Theorem, there exists at least one value in the interval $(x_1,x_2)$ where $f'(x)=0$; at least one value in the interval $(x_2,x_3)$ where $f'(x)=0$; ... at least one value in the interval $(x_{n-1},x_n)$ where $f'(x)=0$.
We have just proved the existence of at least $n-1$ roots of $f'(x)$ with $n>3$ in a correct way. That is, there exist at least $3$ roots of the equation $e^x-2ax-b=0$. Let be the distinct real roots $x_1',x_2',x_3',\ldots, x_{n-1}'\in \mathbb{R}$. In such a case,
$$f'(x_1')=f'(x_2')=\cdots =f'(x_{n-1}')=0$$
By Rolle's Theorem (applied to $f'$), there exists at least one value in the interval $(x_1,x_2)$ where $f''(x)=0$; at least one value in the interval $(x_2,x_3)$ where $f''(x)=0$,... at least one value in the interval $(x_{n-2},x_{n-1})$ where $f''(x)=0$.
We have just proved the existence of at least $n-2$ roots of $f''(x)$ with $n>3$. That is, there exist at least $2$ roots of the equation $f''(x)=e^x-2a=0$.
On the other hand, we know how to solve algebraically this equation which, as it turns out, has only one real solution other than if $a>0$:
$$e^x-2a=0\Leftrightarrow e^x=2a \Leftrightarrow x=\ln (2a)$$
And if $a\leq 0$, it doesn't exist any real solution to the equation $e^x-2a=0$ because $e^x>0, \,\, \forall x\in \mathbb{R}$.
This is an absurd thing according to what we have found above.
Therefore, the absurdity comes from considering that $f(x)$ has more than three distinct real roots. We conclude that the number of roots of $f(x)$ cannot exceed the number of three.