ANSWER:
Yes, if you bear it with patience.
“No tiredness, exhaustion, worry, grief, distress or harm befalls a believer in this world, not even a thorn that pricks him, but Allaah expiates some of his sins thereby.” (Narrated by al-Bukhaari, 5210; Muslim, 4670).
https://islamqa.info/en/answers/34604/will-a-person-be-rewarded-for-any-calamity-such-as-disease-or-an-accident-that-befalls-him