Ducks don't have as strict a pecking order as chickens. So it may be adopted fairly easily. Ducks can't bite very hard, but a tiny neck doesn't take much, and they can be rather mean especially around mating season.
If the ducks are the laziest way to get food, they will find a way. Electric poultry netting is an option, we put ours away in an A-frame coop I made every night.
Solution could be as simple as putting some dogfood/catfood out so the racoon has an easier meal, removing all food sources from enclosure. Racoon traps are relatively cheap and can sometimes be rented. Some companies will relocate raccoons (we have about 100 on our property so not an option).