yes. stella parks has a good article on the reasons why butter and sugar are creamed together in baking. the same principles apply to coconut oil - you're working air into the mixture of sugar and fat, which provides leavening. the choice of fat doesn't matter as much as the process itself.