Please help!

My question:

I have a 5yrs old son that live with his mom but there’s no court order for the custody yet…that means that I have the same right to be with my son…My ex is asking to sign an affidavit stating that I promise to return my son to her at the end of the summer vacation….Is this letter affect my custody right in the future if she show it up on court?