When we had a dog, yes, it's only proper plus where I used to live there was a bylaw, and the landlord would evict you if the manager caught you not picking up.
I just pick it up with the bag then turn the bag inside out and close it, easy.
And being honest if your apartment complex has dog turds everywhere it'll make it look like a bad place to live, so I could see why it was against the rules. Here most aparts don't even allow dogs.