Coconut oil for diaper rash

Does it work? Thinking of using that instead of diaper creams