Can we set Groupdocs total license in comparison method?

If we have purchased groupdocs total license but want to integrated groupdocs comparison jar only in our project, is it okay if we pass this license to com.groupdocs.comparison.license.License.setLicense() ? Will it be valid and working?

@sarfraz.ahmad

Yes, GroupDocs.Total for Java license will work for all GroupDocs Java APIs.