Setup a CNAME for Phoenix Application

Hello everyone, I currently have an application running on production with its own domain. However I want to add new CNAME to it. My questions are:

  1. Is it as simple as adding the new domain into the check_origin option on the Endpoint?
  2. Area all the routes going to map exactly like the are defined on the router?