yes 2 different components can be assembled by providing contacts based on the problem the below link of my paper provides the details contact and target element used in 2D problem using ANSYS APDL
if possible brief the problem with some images I will try to help you
Article Hertz Contact Stress Analysis and Validation Using Finite El...