Non-resident MD

I live in NY and work for the University of Maryland Global Campus (UMGC) teaching online.  I have been paying taxes to MD but a CPA just told me that I should be able to have that changed and just pay taxes in NY. Is this correct?