Yes, if you want to restrict users from uploading custom apps on Microsoft Teams, then you can block custom apps in the permission policy to keep users from uploading any custom apps.