Yes, that looks like a roundworm. Fortunately, the cure is a drug that has a very high safety level and a very low toxicity. It goes by some of the following names:

Strongid
Pyrantel Pamoate
Evict

Check with a vet for doseages.