No, moths generally do not like cedar oil; they actively avoid it.
Cedar oil acts as a natural repellent to moths. While humans often find the scent of cedarwood oil pleasant, moths find it irritating and will typically flee from areas where it is present. This makes cedarwood oil and products containing it, like cedar rings and blocks, effective natural deterrents for moths in closets and storage areas. The oil's volatile compounds interfere with the moths' sensory receptors, making the environment unappealing and disruptive to their ability to find food and suitable breeding grounds.
Therefore, cedar oil is considered a natural and effective way to protect clothing and other items from moth damage.