If yeast are still alive and active in your beer, moving them into a second container isn't going to stop them. Racking beer off the yeast cake could slow things down a bit, but it won't stop it.
The better question is: Why would you rack to secondary before fermentation is done? The whole point is that your primary carboy ferments the beer, your secondary (if you choose to use one, many don't) is for after fermentation is complete to allow the beer to clean and clear up.