State tax filing

If the taxayer is a resident of CA but the pension is coming from NM do I have to file a NM non resident return? I know it is not taxable by NM but wondering if I still need to file the return.