Confirming "state taxes withheld"

I am working on "tax adjustments" as part of community property allocation and it's asking me for federal taxes and state taxes that were withheld. Are federal taxes sum of boxes 2 + 4 + 6 on the W2, and state tax is box 17?