There is video out of Ukraine of Russians with shotguns shooting at drones. It’s not very effective.
It does work at least sometimes. If it didn't work at all soldiers would not bother carrying the shotguns.
https://en.wikipedia.org/wiki/Use_of_shotguns_against_drones https://www.businessinsider.com/ukraine-soldiers-best-chance...