There is a way to make a similar thing - you can just set another actor as a view target of the player controller and it will use its camera instead. (you can even animate it smoothly with a blend)
If you insist on using the same camera - keep it as a separate actor, move it after the player when you want and leave it behind when you don’t by providing it with a custom transform each tick.