Hi @adil ,
Yes, for sure, it will work with HTTPS if you select a different port other than 443, provided that you have to successfully add HTTPS Binding for the SharePoint Web Application and configure Alternate Access Mapping.
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.