Funny you should ask. At the dump near my cabin in Ontario, the raccoons live in the garbage containers until the trash piles high enough for them to crawl out. So yes, it's possible. But it would probably have to be bigger than a barrel, and you need the sides to be absolutely impenetrable to raccoon claws.