Yes, parchment paper can be used for all types of cakes. It is especially useful when baking cakes that tend to stick such as moist, dense cakes or cakes with a high sugar content.
However, it’s advisable to always check the recipe instructions. Some cake recipes, like angel food cake, require a specific type of pan or recommend not using any lining for optimal results.