Is the purpose of the judicial branch to make laws?

No, the purpose of the Legislative Branch is to make laws. The purpose of the Judicial Branch is to interpret and apply the law.