If you want to learn a bit more, there was a recent, really good Planet Money episode[1] about this exact same topic. They focus on the problems that you might face when using zip code for demographic analysis.
[1]: https://www.npr.org/2025/01/08/1223466587/zip-code-history