Of course you do!
Always carry a plastic bag and pick up after your dog (and remind your dog walker or pet sitter to do so, too).
Just slip your hand in the bag, grab the dog poop and then turn the bag inside out over your hand and tie it in a knot.
Find a trash can to deposit your package in, or throw it out when you get home.
Your neighbors will appreciate your thoughtfulness and you will feel good knowing that you’re doing your part to keep the neighborhood dog friendly.
In many locales, this is not just a good idea — it’s the law.