Living in NY while working in NJ

I live in NY while working in NJ. Am i at a disadvantage from a tax perspective when compared to if i was living in NY while working in NY at the same salary.