Yes, you can still recover compensation, but the sum of money will be considerably smaller if your negligence has also contributed to the truck accident. Your degree of negligence will be evaluated according to the California law of "comparative negligence".