Yes. Report your income on a Form 40NR. You can get a copy of this form on this website.
Exception: Under the Military Spouses Residency Relief Act (MSRRA), the spouse of an armed forces member is exempt from Alabama income tax when:
The employee’s spouse is a military service member.
The employee is NOT a military service member.
The military service member spouse has a current military order assigning him or her to a military location in Alabama.
The employee and military servicemember reside at the same address.
The employee’s domicile state is a state other than Alabama.
The employee’s and military service member’s domicile is the same.
The employee is present in Alabama solely to be with the military service member spouse.
In addition, the qualifying spouse should complete a Form A4-MS (https://revenue.alabama.gov/wp-content/uploads/2019/09/FA4MS9_19-1.pdf) with their employer claiming withholding tax exempt status.