In my lecture notes for algebraic geometry, an algebra over a field $k$ is defined as a (unital and commutative) ring, together with a ring homomorphism $\lambda:k\to R$ (such a homomorphism preserves $1$). Using $\lambda$, we can define a scalar multiplication $k\times R\to R$ by $c\cdot f=\lambda(c)f$.
On Wikipedia, a finitely generated $k$-algebra $R$ is defined as an algebra over $k$ for which there exist $a_1,\dots,a_n \in R$ such that the evaluation homomorphism $\phi_a:k[x_1,\dots,x_n]\to R$ is surjective. However, in my lecture notes, it defines a finitely generated $k$-algebra as an algebra over $k$ for which there exists a surjective homomorphism $\psi:k[x_1,\dots,x_n]\to R$ (there is no requirement that such a homomorphism is an evaluation homomorphism). Are these two definitions equivalent?