What you make will probably a lot less than the founders. But if the company is successful, that will still be quite a lot more than what you get from a regular salary working at a big company. And what you end up learning is also quite a lot more.
So, if you are not starting your company and if you believe in what the founders are doing, I would say go for it.