Let $M$ be a smooth *compact* manifold of dimension $n$, and let $U$ be a smooth *compact* manifold with boundary, of the same dimension $n$, embedded in $M$.

The embedding induces maps on $\pi_1$.

If $\pi_1(\partial U) \to \pi_1(M)$ is injective, does this imply that $\pi_1(U) \to \pi_1(M)$ is injective?

If true, can you direct me to a reference or a short proof?

EDIT: I reformulated the question adding compactness of M and U to rule out the counterexample given in an answer.

stars`*stars*`

in MathJax, not $\textit{math mode fakery}$`$\textit{math mode fakery}$`

, for italics. I have edited accordingly. $\endgroup$ – LSpice Oct 20 '19 at 2:09