It's highly unlikely, due to them not having any brain or central nervous system. All they have is a small nerve network and two ganglia near their esophagus.
The whole nervous system is basically two nerve centers, one that controls the muscles and the other one that controls the "foot" and other sensory organs. It's unknown whether the cerebral ganglia can feel pain, or just sensations such as food in it's mouth.
There are many articles about whether oysters and such are vegan and do they feel pain, but the overall consenus is: They likely don't feel pain, but whether you eat them depends on your definition of vegan. Do you abstain from eating animals altogether or just animals that feel pain...