Yes, it is recommended to rinse eggs before composting to remove any residue or potential contaminants. Rinsing the eggs helps prevent attracting pests, such as rodents, and reduces the risk of introducing harmful bacteria to your compost pile. After rinsing, allow the eggs to air dry before adding them to the compost.