Yes. While you should always cross the street at a designated crosswalk when one is available, you may still be able to recover compensation for your injuries if you were hit outside a crosswalk. Motorists owe all pedestrians a duty of care to drive safely and responsibly. Just because you were not in a crosswalk does not absolve a driver of their responsibilities.
Of course, depending on the situation, you may face claims that you were partially responsible for the accident. Different states have different laws, and some states may limit your ability to pursue a claim if you were even partially responsible for causing the accident. In many states, however, you may still be able to recover compensation for your injuries unless you are found to be primarily responsible for the crash.