Speaking in Backbone terms: Yes you can just change a view's template property any time before the render function is called.
Then SCA also has some capabilities with Site Management tools to do this by configuration but i'm not familiar with that enough to say, but you can search around the help, i believe it was relased in 2019.1 and enhanced in 2019.2