Yes, nonworking spouses can contribute to a Traditional or Roth IRA as long as the working spouse has taxable compensation and the couple files a joint federal income tax return. There are special income rules that apply, so it's important to consult with a financial advisor or tax professional for more specific guidance.