Yes. You can cap how many people RSVP Going to an Event, and you choose who's invited.
Set a capacity
Create or edit the Event.
In the right-hand column, switch on Set Event Capacity.
Enter the maximum number of Attendees.
Once that many people have RSVP'd Going, no one else can RSVP Going. Maybe RSVPs don't count toward the capacity.
On an Event with tickets, you can also cap each ticket type: open Advanced Ticket Settings and switch on Limit Capacity for that ticket. The Event's capacity still applies to all its tickets together.
Choose who's invited
Under Invited Attendees (Non-Ticketed Attendees when you edit the Event), add the Groups, Roles or members who can RSVP. Members outside them don't have access to the Event, unless they can buy an Offer that gives them access.