It would be perfectly fine, but if you join a company A because they offered equity instead of company B which offered more money BECAUSE you wanted the equity to materialize, but the founders never intended to sell, then you are taking objectively worse offer because you were under the impression equity meant something.
Of course any company can give out equity to their employees, but if it never turns into money then who cares?