Define the coordinates or rotation of a bone

Is there a way to define the coordinates or rotation of a body part of a ped?
For example, I would like to put the ped’s arm in a horizontal position (90°) but it can “move” on this horizontal axis which depends on the movements of the mouse ?