Yes, you can file in two states if you are in the military. You may file in Iowa, from tax standpoint, your State of Legal Residency. You may also file in California, if you had non-military income and/or state income taxes withheld.
The return filed in California be a non-resident return.
If a military person is an Iowa resident, he or she must file an Iowa individual income tax return if:
*does not include pay received from the federal government for military service performed by members of the armed forces, armed forces military reserve, and the national guard in an active duty status
See the following information for State Filing Rules: