Totally possibly. I made such a feature in my own rts project. I basicly switched from third person into third person and vice versa. Because it was a prototype and isn’t developed further for the time being, here is my player controller. Keep in mind that there are many ways to achieve this. This is just my way :).
I hope I could help.
Cheers! Have fun with your project!