Are there security risks in working directly in the themes folder that builds into a theme folder?

Are there security risks in working directly in the themes folder that builds into a theme folder?