Diet can definitely play a role, especially if you're not getting enough protein or certain nutrients. But I wouldn't expect a diet change alone to fix hair loss because there can be a lot of different causes.
I'd start with the basics: eat properly, get enough protein, stay hydrated, and don't...