No, “the early bird gets the worm” is a proverb. The difference is that a proverb provides a piece of universally accepted knowledge. It often tries to teach a lesson or inform someone of the best way to live their life. Idioms are often less clear and need more context to understand.