No, you need not depend on JavaScript for discoverability and indexing. However, Google's crawlers can run JavaScript and client-rendered sites can be indexed.