State listed in 1099=must pay taxes on it, even if non resident

On most 1099s and W-2 statements a state is listed on the form you receive. If you are a non resident of California when  you receive a 1099 that includes CA on it, do you need to pay tax on it anyway as a nonresident, just because it is marked CA on the 1099?