My guess is that it's not possible since I couldn't find an example to fit the scenario. However, I can't seem to prove either, so I'm not sure if my guess was correct or not.
On a similar note, is it possible for one of them to not be injective but the composition still be injective?