Sure they can. you just need a big enough fleet

In my most recent game the 3rd Pirate base had 67 Corsairs and tons of other stuff. (First 2 bases were only minor nuisances, which had to go because they were located very badly..I always would have had to go through it to get to a cluster of Planets)
I had 10 Caps (lvl 4-8 at start, all types) and about 30 HCs, 10 Cielo, 30 Lrms, 30 Cobalts (give or take some at each type).
In the end I had lost about 1/4-1/3 of my fleet, no Cap though and Caps were nicely levelled which was why I did attack those Pirates.
So...just have a more powerful fleet.
And micomanaging at least at the start helps to keep your fleet out of range of those defense buildings.