Yup, they'll do a 'polyp bailout' and float away- typically as a response to stress, but also if they get too shaded / crowded.
I'd suggest gently moving the free head into a small tupperware container in the tank filled with LR rubble or some frag discs. It should eventually attach and/or start developing a new skeleton.