Yes, the formula can be applied to third-party candidates in the same way it is used for major-party candidates. It calculates the change in vote share for any candidate or party, regardless of their political affiliation.