can you eat weevil infested rice?

Hi,

I stocked up on rice and noticed that some closed bags were infested by weevil, they were alive and moving around, a lot of them.

Apparently it's possible because the grains were infected when I bought them.

Right now I can throw it away and buy new bags, but in a situation were I could not, would it be ok to wash the rice with only water and then cook the rice?

Because I'm guessing they pooped in there so it might still be unsafe.

Thanks.