Project: Paper2D

Can u attach a flipbook to a socket inside a flipbook? for say attaching a 2d gun to a 2d player? or how would be done?