Guys, Was I wrong for confronting my daughter's friend?

I have a 16-year-old daughter. She makes excellent grades in school. However, she has a friend, Emily, the same age as she that's got a car. Her and the girl go to the same school and have had classes together. They want to hang out and go places, which I do not mind as long as she informs me where she is at and keep her location on her phone. One day my daughter had a meeting after school, and she got in the car with this little girl and went to another county supposedly to a Wal-Mart and the girl's car broke down. I was highly upset because first of all, I had no clue my child was with Emily much less in another county. My daughter apologized and promised to let me know of her location at all times and to call if something like this were to ever happen.

So, this past Monday my daughter and this girl went to a ballgame together, they did not get in until 9 pm. Emily came to my mom's top pick my daughter up. Which was fine with me. So Tuesday, the following day, my daughter said she had another meeting after school. After the meeting the little girl and my daughter went somewhere, and I had no clue. I messaged my daughter and called her, she would not answer. She messaged me back and said she would be coming home soon. Two hours had gone by, when Emily dropped my daughter off at home I was waiting. I went to Emily's car and told her to not ever let my daughter back in her car and to not ever come to the house to pick my daughter up or to drop her off. My daughter was present when I said it. If Emily's mom let her stay out every night of the week knowing she got school, that's between her and her mom, I'm not having that with my daughter. I do not want my daughter's grades to start slipping.

Now my daughter is upset with me. I am looking out for my child's safety. My daughter would not answer my calls and would not keep her location on her phone. Was I wrong for saying something to Emily. I do not know this girl's mother.

Guys, Was I wrong for confronting my daughter's friend?
Post Opinion