Should my boss have spoken to me like this? Do I need to go to HR?

We have a work function coming up.

I was put into a group where I don't know anyone & the location was 1 hour away.

So I went to someone in another team asking if it was ok to join their group instead because the location is 15 minutes away. I didn't know the person I went to was her manager.

My manager spoke with me today and scolded me.

She was like:

I found it disrespectful that you went to my manager when I told you what group you where in. It's due to budget costs.

Then I said " I didn't know he was your manager and about budget."

Then she said "The budget is none of your business and it seemed to me you just went to him to get what you want."

I said I wasn't trying to be malicious, I went to him because I told. you this the first time & he was approachable.

Then she said "I don't want to dwell on this"

Then left it at that.

I told my outside friend and she thinks I should go to HR.

Would you?

Should my boss have spoken to me like this? Do I need to go to HR?
Post Opinion