Yes, you can use melted butter instead of oil in carrot cake but remember to add more amount of melted butter in the cake to make cake more delicious.