Can you use hair clippers on dogs?

I know my two dogs and two cats will live longer than me. When I’m not here anymore, I’m worried about who will take care of them. I don’t have anyone to ask, and I’m scared that if they go to a shelter, they might be put down.