What about $\varphi:A\to B$ defined by $\forall x\in A,\varphi(x)=e$ where $e$ is the neutral element of $B\subset A$. One has $\varphi(e)=e$ and $\varphi(x\cdot y)=e=e\cdot e=\varphi(x)\cdot \varphi(y)$. So there must be some more conditions on the homomorphism we're looking for. By the way the above is valid in any group, finite or not.
Now if we want $\varphi$ to be surjective, a simple counterexample is given by $\mathfrak{S}_3$ the group of permutations of $3$ elements.
$$\mathfrak{S}_3=\{e,(1\,2),(1\,3),(2\,3),(1\,2\,3),(1\,3\,2)\}$$
Consider the subgroup $\mathfrak{T}=\{e,(1\,2)\}$, it is impossible to find an epimorphism from $\mathfrak{S}_3$ onto $\mathfrak{T}$