Coconut oil

Can you use it on a newborn for diaper rash or lotion?