Yes, they love the same soil as the plants.
I sprinkle cinnamon where I want to weed.
It does not kill them , but makes them move to another area of the garden.
I find them in some of the containers too.
They sometimes carry off small seeds, so I add a sprinkle of cinnamon to seeds.