Could filling prevent tooth from decay?

No. Decay is the disease process through which a hole/void is created. That hole is filled in with filling material. While the filling itself cannot decay, the tooth structure all around the filling can.
Not really... A filling is a restoration that will repair a decayed tooth. It will not prevent further decay from occurring.