If I use the hot/black pepper/water method and spray around pretty much everything, will they eventually stop coming into my yard?

They are driving me crazy with the digging in my pots and they are taunting my dogs sitting in front of the patio door and just flipping their tails. I am afraid that one of them might catch one.

I've never really had this problem before and it's just getting very annoying.

I'm planning on buying nails to pound in on top of the fence for the possums, (they run the top of the fence, very balanced) maybe that would help with the squirrels?