Well yes and no. Capitalism and socialism are both economic theories. Usually when someone refers to "capitalism" they are referring to a market economy with limited command economics (such as the military, roads, etc.) while with "socialism" most refer to a redistribution of wealth and command economics that takes over most of the market.