Dogs can rotate and position their ears for better hearing and to protect them from injury. However, they don't have the ability to close them completely like a human might.
Some breeds, like Doberman Pinschers, have erect ears that can be positioned forward or backward depending on the dog's mood or activity. Others, like Basset Hounds, have floppy ears that can be tucked down to protect them from getting dirty or damaged.
It's important to remember that ears are important for a dog's sense of hearing and balance, and they should be treated with care. If you notice any signs of ear problems, such as redness, swelling, or discharge, you should consult a veterinarian.