Yes, wearing a helmet will not prevent you from recovering compensation in a motorcycle accident case especially if you were not at fault.
For example, a car that strikes a helmetless motorcycle rider in the rear will still be liable. However, the amount of damages received may be reduced by failure to wear a helmet which defendant’s will argue could have prevented the injuries.