Capital Gain Loss carried over from single years to married joint return

Husband has 3000 capital gain loss (stock sale) carried over from his single year 2017 to married filing jointly return in 2018. Can this 3000 be deducted from his wife's income in 2018? Husband has 0 income in 2018. Both live in WA State, a community property state.