Margarine can be used as a substitute for butter in most cases. However, some are designed for spreading, and others are hard and designed for baking so always read the packaging before cooking ...