can i make an Ik Retargeter with code ?

Hello, i’m just wondering if i can make an Ik Retargeter using code, reading the character skeletal mesh’s bones and setting up the file programmatically?

this can be done ? any one can point me in the right direction c++ or blueprints will be fine.

Thanks in advance for all the help.