Yes, self-rising flour can be used as a substitute for baking powder, as it already contains a leavening agent (baking powder) and salt. To substitute, replace your recipe's all-purpose flour and baking powder with an equal amount of self-rising flour.
Note: You may need to adjust the salt content in your recipe. So add your salt last and taste!