Can she do this? Was I wrong?

Can a boss/manager change a employee’s schedule literally a hour before they are scheduled to come in without mentioning or asking them?

She added a hour to the end of my shift this morning with even asking me and texted me like 4 minutes ago letting me know if customers was still coming in, I’m to stay and work that hour. I’m not mad about having to stay the extra hour, it’s she waited till the day of my shift. I texted her back and said “would of been nice to know earlier” and she said “just made the decision” was I wrong for texting that? I didn’t mean it in a attitude way or anything, but being honest I meant what it said.