Yes, it is possible
You would have the picture that you want on the inside of the outline on a layer, then the outline on another layer :AddNewLayer: .
Use Magic Wand to select the outside of the outline, then switch to your other layer, and push delete.