Yes, molasses can serve as a pest repellent. The sweet smell can keep pests away from your plants.