Fact 1: Active immunity results when an immune response to a pathogen produces memory cells. 
Fact 2: If the parasite causes harm, it is a pathogen.
When a parasite produces memory cells, active immunity results.