I think that substitution would work fine. The only caution I have about coconut oil and baking is to plan out how/when you add it so that cold ingredients don't have a chance to cool and harden the coconut oil. For example, I used it in cookies yesterday. I combined my wet and dry and then added the melted coconut oil separately and quickly scooped them on to the baking sheet. Good luck!
"There's no such thing as failure. There's only feedback. Stop judging yourself & start recognizing it for what it is, an entry point for learning. The truth is, if you're not failing then you're not really reaching & really trying. If you don't like the outcome of a situation, learn from it, make corrections & reapproach wiser & stronger until you achieve your goals."