Separation Agreement before leave?

Do you have to have a separation agreement in place before you leave the residence you share? If you do not have an agreement, will I lose rights to any joint property?