Yes it can, but my guess is it was caused by something else. You can develop heterochromia through quite a few different ways.
If you weren’t born with it then it could’ve happened from an eye injury, inflammation, bleeding in the eye, a tumor, or a different medical condition.
Getting an eye exam can help determine if a disease is causing the color difference.
I hope this was informative, good luck!
I’ll try to post more pictures of brown eyes in the future
It’s not intentional, I mainly post what I see on my dash.