Can any teacher take the quality teacher incentive credit?

Taking grad course to get masters degree in math can I use this deduction?