is that how Rafelson got his name on a Madonna track?
No, Peter got it by writing the original song, recording a demo, then having a friend let him into the studio in the middle of the night to add his song to a studio recording of Madonna's songs. This story is mentioned in this short video which gives background on Peter and his Hollywood and music industry connections:
and here is a link to the Billboard Podcast episode where Peter is interviewed. He goes into a lot of detail about how exactly he pulled it off, and how it helped launch his career. The interview starts about 30 minutes in and is pretty interesting. You should check it out!