Yes. W-2 income does not disqualify you, it simply does not count toward qualified business income itself.
If you take a salary from your own S-Corp and also have pass-through profit, only the profit side is eligible. The salary still matters, because W-2 wages feed the limitation above the income threshold. More in our Form 8995 guide.
Full guide
Form 8995-A: What You Need to KnowPeople also ask