Can previous year losses on rental property with no other CA based income be used to reduce CA taxable capital gain on sale when property is sold?

Had rental unit in CA. Filed CA taxes from 2010 forward. Recorded a loss on the CA rental property from 2010 forward. No other CA based income during this time period. Sold property in 2016. Can previous year losses on rental property be used to reduce CA taxable capital gain on sale?