No, you do not need to answer Yes to this question, because there is a reciprocal agreement in place.
Did you have any DC withholdings on your W2?
What is a state reciprocal agreement?
Which State have Reciprocal Agreements?
[Edited 4.10.24 | 9:53am]
@miclase2016