Should I be careful about soap getting on my dog’s butt hole during a bath?

I know we need to be careful about getting soap on our butt holes, in terms of it leading to drying it out and potentially causing infections. Is this true for dogs also?