That's generally how I do it. Personally the way I take a planet is I usually split my force into 2-4 equal groups (pending on the defender size and how many ships i have) and use command groups to keep them separated (typically 1-4). Using group move and way point movement I have them move just to the other side of a guard post then move to just the other side of another guard post, doing this they just fly along their route and flatten EVERYTHING in their path. I don't use attack-move for this since they have a tendency to get strung out that way chasing after every little thing nearby, if I'm not using way points I'll change their command from move to attack-move as they get closer (either when the enemy leaves their post to intercept or as my longest range attacker is getting close to their attack range) as well as dropping the group move so that the faster close range fighters can get in close fast while the carriers and such get to hang back at their optimum range, tends to sort itself out rather nicely.
Anyway depending on what is at the special ops base (if there is one) I may work it out so two or more groups converge there for a nice flanking attack, if its the base alone and unguarded one of my groups will usually do (keep in mind my initial attacking force is virtually never below 800-1200 ships plus 2-4 leech star ships and a mobile repair station - to avoid having my ships constantly dragged from battle I tend to put the 100% and some times the 66% tugs on low power.....as such even one of my sub-groups is usually more than enough to take a lightly guarded special ops base)
Next is the warp gate and command center, if there are any remaining enemy ships in the area I'll send one or two of my groups toward the friendly wormhole(s) but vast majority of the time there is nothing left alive when i destroy the command center so it isn't really an issue but it's a good practice to have all hostile wormholes guarded with turrets anyway just to be safe so whatever does go through doesn't last for more than a few seconds anyway.
NORMALLY things go very smoothly when i follow that pattern but depending how strong their defenses are and what kind of specials you have things might go pretty slow and you'll have multiple reinforcements appear while taking the planet. (I hate when they appear right at my friendly wormhole since that's usually where my support ships like mobile repair, mobile builder, colony, etc are hanging out...)
The only time I can really suggest going right to the command center is if there is only one friendly wormhole which makes it predictable where the released ships will go so you can defend it well....clearly this is a VERY bad idea if your dealing with a planet which is heavily defended (ie: 1000+ ships) but for lighter defended planets or ones you've softened up by wiping some of the guard posts and such it can work out alright. Still since your going to be taking the planet (presumably if you are wiping the command center) I don't really see the advantage over just systematically sweeping through the planet wiping everything as you go. Whatever works though as long as it doesn't backfire on you.