Not sure why you would need to do that. To add a transfer switch.
I would say NO that will not meet code, and may not be safe.
All of your conductors need to be switched in your transfer switch.
Are you wanting to back-feed your Main ?
Maybe I miss something, or do not understand ?