State tax filing

What if you work in Yonkers, but live in NYC? Do you pay both Yonkers and NYC?