Mixing 12/2 and 14/2 house wiring
You can, but only if the breaker is 15 amps, and it creates possible confusion for someone who looks at the breaker box and thinks "huh, that's 12GA, I can change that to a 20A breaker." So you might want to leave that person a note in the box.