Couchbase lite for websites (served from tomcat server)

I am new to couchbase. Came across couchbase lite & sync gateway for maintaining sync between couchbase server and mobile and web clients.

Checked the diagram mentioned in the below link.
Reference - Introduction | Couchbase Docs

Is it adviced to have sync gateway between tomcat servers bundled with Couchbase lite sdk and Couchbase (central) server?

Thanks ahead!