Yes, although uncommon, it is possible to contract intestinal worms such as tapeworms by eating raw or undercooked fish like salmon.
To prevent infection, cook fish thoroughly until the internal temperature reaches at least 63°C (145°F) to kill potential parasites.