Hi @James Lee,
Thank you for posting in this community.
I feel regretful to inform you that we can't limit the user profile creation.
I ran a test in my side, and I found that all users in Active Directory will have a user profile created the first time they visit a SharePoint site. The creation of a user profile means that the user is synchronized from Active Directory to SharePoint. This is designed by SharePoint to better manage users in Active Directory through SharePoint. We can't change it.
I noticed that you want to control that only certain users can access SharePoint then you can set certain users to have access to the web application or SharePoint sites to achieve this.
Reference:
Manage permissions for a web application in SharePoint Server
User permissions and permission levels in SharePoint Server (Introduction to User permissions and permission levels.)
SharePoint site permissions (How to configure user permissions and permission levels.)
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.