Yes, a jig can be used for movement & placement. Inside of the jig you can restrict the movement by looking at the point(s) acad passes into your jig code and the altering those point(s) to keep the in the jig inside your restricted area.
Your code will be responsible for detecting collision/crossing of the container and calculating an correction to the points being dragged.