Should a box shadow be used on a container?

I have a container that's used for pagination (as you scroll down it loads more elements). I rounded the edges out and added a box-shadow, but I'm not sure if this was the right decision. Is there some sort of a rule for where/when/how box-shadows should be used?

enter image description here