This depends on whether you were wholly or partially at fault. You can be held partially responsible which means the amount you receive would be lower. However, you can still receive compensation, when partially at fault. You can collect for your injuries even if the accident was partly your fault.
There is a legal principle of “contributory negligence”. This is negligence on the part of the person who was injured which, when considering the negligence of the main person at fault, caused the accident.
An example of this is wearing running shoes in winter and slipping and falling on ice. Boots should have been worn and in not doing so, that injured person contributed to their own injury. Contributory negligence, if any, on the part of the injured person does not bar recovery of monetary damages, but the amount of monetary damages to which the injured person would otherwise be entitled to will be reduced, usually in proportion to the amount of negligence attributable to that injured person.