Can wearing a mask avoid gasoline poisoning?

I can't.

Masks only serve as isolation. Tiny particles can wear masks, but gasoline is a molecule, so it is useless.

There is activated carbon in the gas mask, which can absorb toxic and harmful gases, so it must be used.